Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created September 18, 2009 13:33
Show Gist options
  • Save mrchrisadams/189050 to your computer and use it in GitHub Desktop.
Save mrchrisadams/189050 to your computer and use it in GitHub Desktop.
<% form_for @user, :url => account_path do |f| -%>
<ul class="account_form">
<li class="info"><%= f.label :messaging, "Messaging" %> <%= f.radio_box :messaging, :true %></li>
<% end -%>
### more form controls ###
NoMethodError in Accounts#profile
Showing app/views/accounts/profile.html.erb where line #25 raised:
undefined method `radio_box' for #<ActionView::Helpers::FormBuilder:0x7f0074c>
Extracted source (around line #25):
22:
23:
24:
25: <li class="info"><%= f.label :messaging, "Messaging" %> <%= f.radio_box :messaging, :true %></li>
26:
27:
28: <% end -%>
RAILS_ROOT: /Users/chrisadams/RailsApps/nag2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment