I''m new to ruby, working on the book from Christian Hellsten &
Jarkko
Laine writen for RoR 1, so I had to adapt for RoR 2.
I got the error :
undefined local variable or method `multipart'' for
#<#<Class:0xb714d388>:0xb714d360>
Code :
1: <h1>Editing book</h1>
2:
3: <% form_tag( {:action => ''update'', :id => @book},
multipart => true )
do %>
4: <%= render :partial => ''form'' %>
5: <%= submit_tag ''Edit'' %>
6: <% end %>
I tried several variants, some module missing ??
Thanks for any help.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
just a typo, multipart should be :multipart> 3: <% form_tag( {:action => ''update'', :id => @book}, :multipart => true ) > do %>-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thorsten Mueller wrote:> just a typo, multipart should be :multipart > >> 3: <% form_tag( {:action => ''update'', :id => @book}, :multipart => true ) >> do %>Thanks a lot, more obvious, more difficult to see sometimes! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---