Ruby on Rails Wednesday, June 6, 2012

Jeremy W. wrote in post #1063404:
> On 6 Jun 2012, at 18:21, Perry Smith <lists@ruby-forum.com> wrote:
>
>>> at previous messages to check your code (myself included).
>>> Colin
>> <%= link_to "pogo", pogo_path(1234) %>
>>
>> in my view.
>>
>> I thought resources were just a batch of named routes and I thought what
>> I did before was a named route. I need to go check on that.
>>
>> What confuses me is that blah_path is not even defined. It seems like
>> if it needed a particular type of argument, then the error would be
>> inside blah_path -- not in the code trying to find the blah_path method.
>
> Did you name the route in your routes file (ie :as => "blah")?

Thank you. I was just writing a reply with the same info.

Originally I did not.

Thank you again.

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

No comments:

Post a Comment