Colin Law wrote:
>>
>> ActionController::Routing::Routes.draw do |map|
>>  map.connect '', :controller => "account", :action => "index"
> 
> It just goes to show how clever rails is, you asked for a link to
> account/index, it generated a link to / but your route says that /
> should go to account/index.  So that's all right then.
> 
> Colin

thanks a lot. But instead of using below code


<%= link_to "Index", {:controller => "account", :action => "index" },
:style => "text-decoration:none" %>

If I say

    <%= link_to "Index",  :controller => "account", :action => "index" 
%>

it is generating
          <a href="/account/index" >Index</a>

why is it like that
-- 
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 [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