Sunday, March 27, 2011

Re: [Rails] undefined method `start_form_tag'

On 27 March 2011 16:15, Bryan Crossland <bacrossland@gmail.com> wrote:
> Sent from my iPhone
> On Mar 27, 2011, at 9:15 AM, amritpal pathak <amritpalpathak1@gmail.com>
> wrote:
>
> I tried to generate the form using
>  <%= start_form_tag :action => 'create' %>                 in
> app/view/book/new.rhtml
>                   and when i browse to localhost:3000/book/new  i got the
> following error
>  undefined method `start_form_tag' for #<ActionView::Base:0xb67231f0>
>
> Start_form_tag and end_form_tag were deprecated in Rails 2.0. Use Rails 3
> documentation to see the proper use of form_tag.

In addition if you are using an ancient tutorial then stop and find an
up to date one that uses Rails 3. The free online one at
railstutorial.org is not bad.

Colin

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