Monday, October 4, 2010

[Rails] Re: Rails 3 - Using link_to but adding a # for AJAX Deep Linking

Very nice! thank you both

On Oct 4, 9:23 am, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> Butu wrote:
> > Hi,
>
> > Try with
> > <%= link_to project.name, "#" + project %>
> > or
> > <%= link_to project.name, "#" + projects_path %>
>
> > Please let me know if it doesn't work out.
>
> Minor syntax point: "##{project}" is actually more efficient than "#" +
> project , since it generates fewer String objects.
>
>
>
> > Thanks!
> > Butu
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> mar...@marnen.org
> --
> Posted viahttp://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