On Sep 11, 3:18 am, Evanoshki Brataslavainskinski <li...@ruby-
forum.com> wrote:
> Hi guys,
>
> I'm a newbie in ruby and I would just like to know how you set a value
> for a field in a table where session[:user_id] matches user.user_id.
>
> I am trying to do this from a submit form in the show.html.erb file
> because that is where the other field value is set.

If I've understood you properly you're doing this back to front. You'd
typically do this in the comments controller, when you are creating
the new comment

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to