-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: Ruby on Rails
Using Two Layouts in a Single Rails Controller
Sometimes, whether it is best or not, you run into the issue of having a single controller needing to display two different layouts. I’ve only run into this a hand full of times but it was annoying each time because … Continue reading
Posted in Ruby on Rails
Leave a comment
Storing Uploaded Files on Server Filesystem with Rails
Storing files in large BLOB columns of your database has its place, but in situations in which that is not the case, one needs a well organized way to keep files on the server. Often times folks will create a … Continue reading
Posted in Ruby on Rails
Leave a comment
Removing Non-alphanumeric Characters Using REGEX
We use this fancy (not really) method at Loudpixel that allows us to create dynamic stylesheets (not using a framework, just creating application.css.erb) in order to apply certain styles (mainly colors and images) to specific areas of our layouts. In … Continue reading
Posted in Ruby on Rails
Leave a comment
Metadata in Ruby on Rails
I have multiple pieces of data to store that all relate to one row in my database, but I don’t want to create a completely separate data model and/or table. Is it possible to store this data in a single … Continue reading
Posted in Ruby on Rails
2 Comments