We can do that with attr_accessor In model attr_accessible :site_id attr_accessor :site_id
in form, add a hidden field like this =f.site_id, value; session[:site_id] in model we can use self.site_id now. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

