开发者

Unterminated Regular expression literal in rails

开发者 https://www.devze.com 2023-02-28 18:18 出处:网络
I am using radio_b开发者_开发技巧utton_tag in my rails application, like <%= radio_button_tag \"range\", \"month\",false, :onclick => \"#{abc_path(:type => params[:type])}\" %>

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

0

精彩评论

暂无评论...
验证码 换一张
取 消