Saturday, September 11, 2010

[Rails] Re: vestal_versions, user_id

Rails error'd on that....

Error "Called id for nil, which would mistakenly be 4 -- if you really
wanted the id of nil, use object_id"


On Sep 11, 8:20 pm, radhames brito <rbri...@gmail.com> wrote:
> this does not work?
> @book.version.user_id = @current_user.id    ?
>
>
>
> On Sat, Sep 11, 2010 at 8:23 PM, nobosh <bhellm...@gmail.com> wrote:
> > Anyone using vestal_versions:
> >http://github.com/adamcooper/vestal_versions/
>
> > How do you set the user_id in the versions table?
>
> > tried:
>
> > in:
>
> > def update
> >  @book.version.user_id(@current_user.id)
> > and
> > @book.user_id(@current_user.id)
>
> > both error
>
> > thanks
>
> > --
> > 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-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscrib e@googlegroups.com>
> > .
> > 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate