Robert Mela
2006-Jul-25 14:01 UTC
[Rails] Battle of Namings: stylesheet_link_tag vs link_to_javascript
Link helper namings counterintuitive in an environment where convention over configuration prevails: <%= link_to_javascript ''myscript'' %> <%= stylesheet_link_tag ''mystyle'' %> A simple def in ActionView::Helpers::AssetTagHelper would fix things in a nice, backward-compatible way, such that: <%= link_to_javascript ''myscript'' %> <%= link_to_stylesheet ''mystyle'' %> In the meantime I can do a def in my own app''s helpers.
Tom Mornini
2006-Jul-25 19:40 UTC
[Rails] Battle of Namings: stylesheet_link_tag vs link_to_javascript
Submit a patch, with docs and tests. On Jul 25, 2006, at 7:01 AM, Robert Mela wrote:> Link helper namings counterintuitive in an environment where > convention over configuration prevails: > <%= link_to_javascript ''myscript'' %> > <%= stylesheet_link_tag ''mystyle'' %> > A simple def in ActionView::Helpers::AssetTagHelper would fix > things in a nice, backward-compatible way, such that: > <%= link_to_javascript ''myscript'' %> > <%= link_to_stylesheet ''mystyle'' %> > In the meantime I can do a def in my own app''s helpers. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails