search for: link_to_remov

Displaying 5 results from an estimated 5 matches for "link_to_remov".

Did you mean: link_to_remove
2011 Feb 26
1
How to manage the form of a model that has two foreign keys
...er_form.label :user_godfather_id %> <%= godfather_form.text_field :user_godfather_id %> <%= godfather_form.label :description %> <%= godfather_form.text_field :description %> <%= godfather_form.link_to_remove "Remove this godfather" %> <% end %> <%= f.link_to_add "Add a godfather", :godfathers %> <br/><br/> <%= f.submit "Update Godfathers" %> So as I said in the comments, my goal is to be able to provi...
2011 Jul 16
0
nested_form gem don't work for accepts_nested_attributes_for :limit
...form_for @post, :html => { :multipart => true } do |f| %> <%= f.fields_for :images do |i| %> <% if i.object.new_record? %> <%= i.file_field :photo %> <% else %> <%= image_tag(i.object.photo.url(:thumb)) %> <% end %> <%= i.link_to_remove "Remove this image" %> <% end %> <%= f.link_to_add "Add a Image", :images %> <%= f.submit %> <% end %> The problem is when I add more images that the limit. Although I delete it before submit the form, the post don''t validate: ActiveRe...
2006 Feb 21
2
Ajax status
Hello All. I''m making ajax call to some url but to connect and get data from that url first I check session for user which using AJAX. If session is expired I redirect Ajax call to other url. That url return form to login. There is one problem - I check in function onResponse(OriginalRequest) OriginalRequest status and status is always 200 - whatever I''m logged or not. So i
2013 Feb 10
0
Nested attributes doesnt get updated
...Add Request", :w_a_details %></p> <div class="actions"> <%= f.submit %> </div> <% end %> *w_a_details/_form.html.erb *<%= form.fields_for :w_a_details do |a_form| %> <%=a_form.text_field :description %> <%=a_form.link_to_remove "Remove" %> <% end %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G...
2011 Oct 26
6
Add an index to a form
Hello, I''m having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there''s a step called "children" and that children has the following fields: * name * age * gender but one father may have more than 1 child and I''m adding another form with