On Mar 9, 12:17 am, Carlos Santana <[email protected]>
wrote:
> I am getting following error while creating a new topic using RESTful
> design. But, everything works fine when I use <% form_tag :action =>
> :create do %> .
>

> ActionView::TemplateError (undefined method `symbol_path' for
> #<ActionView::Base:0xb72a2e40>) on line #3 of topics/new.rhtml:
> 1: <h1>New Topic</h1>
> 2:
> 3: <% form_tag :topic, :url => topics_path do %>

form_tag doesn't work like that - the first argument has to be a hash
of routing options or a path. Looks like you were actually trying to
use form_for (or you just wanted form_tag topics_path)

Fred
> 4:   <%= render :partial => 'topic_form', :object => @topic %>
> 5:   <%= check_box_tag :make_standard, :true, @standard%>
> 6:   &nbsp;Fill with standard items<br /><br />
>
> Any clues?
>
> CS.
>
> Please someone help me with this... My previous posts have also received
> no response. :(
> --
> Posted viahttp://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 [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