On Sep 22, 4:05 am, Sven Wildermann <sven_wilderm...@yahoo.de> wrote:
> Hey,
>
> i am very new with handling Ruby on Rails, so i did the Video-Tutorial
> of "video2brain".
> They use an older Version of Rails (1.8.. - i guess) and in an
> controller-file they want me to do the following:
>
> class FormController < ApplicationController
>   def index
>     @form = Form.find(:first)
>     @form.update_attributes(params[:form])
>
>     @detail = @form.detail
>     @detail.update_attributes(params[:detail])
>   end
> end
>
> But now it says, that the method "detail"  (in @details =
> @form.detail) does not exist. I tried to get help with google - but
> that wasnt succesful.

What does your Form model look like? Can you post the code for that?

-- 
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