开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜