--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LIoHBKXXDxIJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
=link_to_if make_link, url_for(...) do
this is dry :D
You could see the source of link_to_if (and link_to_unless) to see how
to implement it for %li's if you want to.
Also, I've just found capture:
- not_dry = capture do
%span This is not dry
- if defined?(skipLI) && skipLI
=not_dry
- else
%li
=not_dry
--
Posted via http://www.ruby-forum.com/.
No, it's wrong :$ this is not the way link_to can be used