Saturday, April 23, 2011

[Rails] Re: How to connect two controllers ?

On Apr 23, 11:58 am, Colin Law <clan...@googlemail.com> wrote:
> On 23 April 2011 16:48, amrit pal pathak <amritpalpath...@gmail.com> 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"}

Thanks

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate