I would take a look at your routes to see what is going on. To me it
looks like Rails is interpreting your request as a RESTful URI and you
might want a named route.
On Jun 25, 7:51 am, Pavel Petchko
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I''ve created a new action in the recipes_controller class called
> some_action and a corresponding view for it in the /views/recipes/
> folder.
> However, when I go to the localhost:3000/recipes/some_action url i get
> "NoMethodError in Recipes#show" and under the parameters it says
> {"id"=>"some_action"}. So for some reason ruby
treats some_action as a
> variable for the show method? How do I get it to treat some_action as a
> valid action?
> I''m sure there is something very obvious I''m missing
here.
>
> any ideas?
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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
-~----------~----~----~----~------~----~------~--~---