I was serching for some Rails tips and found a very good post, Click here to visit
Archive for July, 2006
I was looking for information on how to expire an idle rails session in say n minutes of inactivity.
Here are some resources
http://antrover.com/blog/articles/2006/05/22/how-to-expire-a-session-in-rails
http://rails.techno-weenie.net/question/2006/5/1/how_to_change_session_time
Should ActiveRecord add validations based on associations defined in the models?
class User < ActiveRecord::Base
has_many :posts
end
class Post < ActiveRecord::Base
belongs_to :user
end
If i create an instance of a post with a user_id that does not exist in the Users table, I wish ActiveRecord threw up a validation error on saving this instance [...]
Few times back when i was writing tests for a client application, I had a hell out of myself while doing the testing for the views. Since then i was looking for some more helper methods apart from assert_tag.
Today i came across this test extension in Hapricot by Luke Redpath. Seems like promising to me. [...]