Unterminated Regular expression literal in rails
I am using radio_b开发者_开发技巧utton_tag in my rails application, like
<%= radio_button_tag "range", "month",false, :onclick => "#{abc_path(:type => params[:type])}" %>
When I give like this in my console I am getting this error:
Unterminated Regular Expression literal
How to resolve this ?? I was trying to fix this..
Please give some suggestions..
try this single qoute range
<%= radio_button_tag 'range', "month", false, :onclick => "#{abc_path(:type => params[:type])}" %>
may be this could help and see the rubyonrails api formtaghelper for more help RubyOnRails API
精彩评论