is user.id no user.user_id

On Sat, Sep 11, 2010 at 4:33 AM, Frederick Cheung <
[email protected]> wrote:

>
>
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to