1
vote
1answer
33 views

Nested routes and proper place for a function?

I have a rails app and in it I have two models, widget and votes. Votes are used to keep track of the desirability of a widget. So in my models I have: ...
4
votes
1answer
3k views

How to write html flash messages?

Flash messages are generally composed in the controller. Some times we need those flash messages to have links in them (like an undo button). How would you go on to compose such a message? The only ...
2
votes
2answers
91 views
2
votes
1answer
2k views

Should I pass my params from controller to the model?

I have an index with a filter form that submits something like: ...