On Jun 14, 11:32 am, amritpal pathak <[email protected]>
wrote:
> >  Routing.rb file has following stuff
>
> Check::Application.routes.draw do
>  get "posts/index"
>   resources :posts do
> end
> root :to => "posts#click1"
> root :to => "posts#click2"
> end
>
>  Thank you

"root :to =>" is used to denote the HOME PAGE of your application.

Further, you're going against Rails convention if you really have
actions like "click1" and "click2".

Please read through and understood Rails Routing properly.

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