Displaying 3 results from an estimated 3 matches for "commit_button".
2010 Sep 09
17
formtastic issue
Hello,
I will try to explain it step by step :-)
I just created a new rails 3 app, then I created a new controller...
rails generate controller admin::users
I didn''t forget to add the resources in the routes.rb file like this.
namespace :admin do
resources :users
end
Now I try to use formtastic to create the form but I get erorr that my
users_path doesn''t exist?
2010 Jan 20
0
need help with nested forms and habtm
...email
- form.inputs :for => [:inquiries, @inquiries] do |inquiry_form|
= inquiry_form.input :text, :hint => t("inquiryinfo")
- inquiry_form.inputs :for => [:machines, @machines] do
|machine_form|
= machine_form.input :id, :as => :hidden
= form.commit_button :label => t("send")
### PROBLEM ###
- the form renders fine for the customer and inquiry fields --> OK!
- the form renders the hidden field only for the FIRST machine in my
@machines collection (and there is definitly more then 1 machine in
the collection, I already checked this w...
2010 Jan 16
3
Formtastic and Access to Variables of Nested Model
...<% end %>
<% f.inputs :name => ''Option #%i:'', :for => :options do |c| %>
<%= c.input :value, :label => **option "name" field**, :hint =>
**option "hint" field** %>
<% end %>
<% f.buttons do %>
<%= f.commit_button ''Submit'' %>
<% end %>
<% end %>
For example, let''s say my document has the following three options:
Option 1:
name = "color"
hint = "Please provide the color name."
value = ""
Option 2:
name = "brand"
hint = &quo...