do you have a method in the cms controller named "authenticate" ?
if so, do you have the following route at the bottom of your routes.rb
page:
map.connect '':controller/:action/:id''
--jake
Vasanthakumar Csk wrote:> Hi Everyone,
> I tried to define a "route" for the translation of empty
URL to
> my applicaion''s index page. But i get the following error:-
>
> No url can be generated for the hash {:controller=>"cms",
> :action=>"authenticate"}
>
> Changes i made are as follows:-
> 1.) My Form tag is:-
> <%= form_tag({:controller => ''cms'', :action =>
''authenticate''},
> {:onSubmit => ''return validLoginPatternFun()'', :name
=> ''indexFrm''}) %>
>
> 2.) In config/routes.rb i have given like this :-
> map.connect '''', :controller => "cms",
:action => "index"
>
> 3.) And deleted the file public/index.html
>
> Please anyone help me out of this...
>
> Thanks in advance,
> Regards,
> Vasanth
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---