<%= link_to "Pages", { :controller => ''page'',
:action => ''list'' }, :class =>
''someclass'' -%>
On 3/3/06, Greg <greg@busyashell.com> wrote:>
> Can''t find any documentation about this so...
> Is there a way to assign a class within a link_to method and if so how?
>
> For example, I need the following to format <a href="link"
> class="class">link</a> from <%= link_to
"Pages", :controller => ''page'',
> :action => "list" %>
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/8544f892/attachment.html