Ruby on Rails Tuesday, April 16, 2019

actually it uses `to_param` to convert to the path (fallsback to id if not defined I think).

you could do something like app.instance_eval { link_to "bob", @bob } and app.instance_eval { link_to "bob", user_path(@bob) } etc.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b2f77cb6-4d6d-4aa5-9a2b-dea5a87c529b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment