December 2010
3 posts
4 tags
Authlogic + Cucumber + CookieSessionStore...
In case you are using a combination of Authlogic, Cucumber and the CookieSessionStore, be very careful with your domain configuration. As our project is working with various subdomains, we are using /etc/hosts with an .local extension on our dev machines. But be careful with the settings. In rails3 you are not supposed to set the session store in the environment config files, but in an...
Dec 13th
3 tags
What I would love to see in Arel / rails3
I would say that with Arel, rails is on the right track to get rid of the SQL statements. But there is still some work which needs to be done. Stuff like Model.where(:name => ‘My stuff’) is already working really smoothly. What I would love to see is an easier access to Arel’s operators such as eq and not_eq. It would be great if the where method would accept a block which...
Dec 12th
1 note
2 tags
parent_layout in rails3
As I am upgrading one of our projects to rails3 right now, I had to deal with lots of obsolete and not longer working code. And I came across this little gem I picked up from Pratik Naik. It allows you to nest your layouts pretty easily. If you upgrade to rails3 you have to change the code to: def parent_layout(layout) @_content_for[:layout] = self.output_buffer self.output_buffer =...
Dec 10th