On 23 April 2011 17:04, amrit pal pathak <[email protected]> wrote:
>
>
> On Apr 23, 11:58 am, Colin Law <[email protected]> wrote:
>> On 23 April 2011 16:48, amrit pal pathak <[email protected]> wrote:
>>
>> > ...
>> >           Now i gave plural ,again error
>> >    <h1>Hello</h1>
>> >   <%=link_to 'Submit',clicks_path %>
>>
>> > Error is
>> > undefined local variable or method `clicks_path' for #<#<Class:
>> > 0xb66b347c>:0xb66b1fa0>
>>
>> And the result from rake routes?  You did try that didn't you?
>       i did it gives
>
>  click_fun GET /click/fun(.:format)
> {:action=>"fun", :controller=>"click"}
> home_index GET /home/index(.:format)
> {:action=>"index", :controller=>"home"}
>      root     /(.:format)
> {:action=>"index", :controller=>"home"}

So why did you not say last time that the clicks routes are not there?
 If you have not got the routes setup then the _path variables will
not be defined.  I suggest you read the Rails Guide on Routing.

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