search for: edit_url

Displaying 2 results from an estimated 2 matches for "edit_url".

Did you mean: di_url
2008 Dec 16
3
ApplicationProperties
Hi There, I was wondering what the appropriate way to use the applicationproperties.rb model was. I was hoping to query it to find out which users are developers for my app and then grant special permissions to them ... I tried creating something like this: class ApplicationProperties < ActiveRecord::Base def facebook_session @facebook_session ||= returning
2006 Mar 16
0
validating presence of a tag
...messages_for :tag will not cause error else @question = Question.new(params[:question]) if @question.save @question.tag(@params[:tag][:name]) flash[:notice] = "Thank you. Your question has been added." redirect_to edit_url(@question.id) end end end I tried nesting a transaction for both question and tag, but that didn''t work. I tried various ways of passing the tag names into the @question.tagmethod. My validations include: Class Question < ActiveRecord Base validates_presence_of...