1
vote
1answer
185 views

Optimizing Rails 3 query code

I am working on a Rails 3 application, and am having some trouble with my user/edit view. In this application, Users can subscribe to Categories. Users and Categories have a has_and_belongs_to_many ...
1
vote
1answer
171 views

Rails feed parser to be improved

This is my feed parser method using feedzirra. It works but I feel dirty because I can't figure out how to better this code. Any suggestion? class Feed < ActiveRecord::Base attr_accessible ...
2
votes
2answers
105 views

Small: Setting locale

I'm new to Rails/Ruby and I would like to get feedback on my little ApplicationController which is able to detect the visitor's language. I'm especially interested in optimizations on the control ...