I've had some troubles integrating imageupload to work with heroku, that's why I wanted to share how I did it: First of all I asume the paperclip gem and imagemagick is installed. Secondly the model that is beeing used as the container for example a recipe box is configured like so: Since Heroku doesnt allow … Continue reading A Guide for Image Uploading (Paperclip, AWS, Heroku)
Raw SQL for search bar
I recently finished my project called: http://www.brau-brett.de I wasn't aware of the possibilities on how to create just a basic search function within my jobs database. I've found a neat little tutorial on how to do it without using any gem but raw sql. I started by impelmenting a searchfield into the index jobs index … Continue reading Raw SQL for search bar
What is SQL?
SQL is a programming language used for relational databases. To menage them and perform various operations on the data, such as adding, updating and deleting rows of data in the database or retrieving information. Commonly used SQL statements are: select, add, insert, update, delete, alter and truncate. A relational database is a set … Continue reading What is SQL?
Building my first little Ruby gem
Strategies when creating a new gem: add a module to application_controller.rb think about from where the gem should be called from with the code above I'm going to implement a copyright that shows on all of my pages, I just have to call it with and voila I got what I wanted: … Continue reading Building my first little Ruby gem