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