Tag Archives: devise

Updated safe_attributes now works with devise

After getting someone interested in using devise with safe_attributes to post a little information on the issue to github, I investigated and found something new. The model validators in ActiveRecord can be used on things other than attributes of the … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Rails + Devise and Rspec

So I tried using Devise on a project and ran into an issue with the default generated controller specs. PlansController POST create with invalid params re-renders the ‘new’ template Failure/Error: response.should render_template(“new”) expecting <“new”> but rendering with <“”> # ./plans_controller_spec.rb:73:in … Continue reading

Posted in rails | Tagged , | 1 Comment