Saturday, October 17, 2009

[Rails] error in using link_to

Hi,
Problem is

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

above, the link_to is not generating the necessary code it has to
generate

It is generating

<a href="/" style="text-decoration:none">Index</a>

But it has to generate

<a href="/account/index" style="text-decoration:none">Index</a>

can anyone solve this.
--
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@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