similar to: Re: form_remote_for NOT passing param: I want put and I get

Displaying 20 results from an estimated 100 matches similar to: "Re: form_remote_for NOT passing param: I want put and I get"

2009 Feb 10
2
form_remote_for NOT passing param: I want put and I get post
Hello, I''m struggling my brain with this ajax issue ... Basically I have a form for creating records, and I want to submit it using Ajax. On previous versions of RoR (2.0.2) it was working, but the same methods doesn''t work on 2.2.2, and I started to make changes and changes and read forums and the api, but no way ... <% form_remote_for (:expedient, :url => {:action
2007 Apr 25
2
form_remote_for, reloaded
Hi, being relativly new to RoR, I''m having a problem which I found described in this forum and somewhere else - but with no solution. I know, that it may be bad to mix table and form tags, but the first solution of an in place editing within a table looked nice: Version using form_for: <tr> <%form_for :time_record, :url => { :action => "add_time_record" } do
2007 Feb 27
0
form_remote_for & file uploads
Has anyone successfully gotten Ajax file uploads working using form_remote_for & attachment_fu? I have seen Sean Treadway''s responds_to_parent plugin and many other samples available, and they all seen to statically generate <form> tags. Is there a way to get a file upload to work using the Rails helpers? <% form_remote_for(:message, @message, :url =>
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for form_remote_for? I''d like to do this :loading => "Element.show(''form-indicator'') and this :loading => "Element.hide(btn-submit'') Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Nov 04
0
Controller don''t receives form parameters using form_remote_for
Hi. I''m having a problem that I am sure there is a simple solution for, but I can''t see it. I have the following partial: <% form_for :time_entry, TimeEntry.new, :url => hash_for_time_entries_url(:period => @period, :action => ''new''), :html => { :id => ''time-entry-form'' } do |f| %> <table border="0"
2006 Aug 09
0
h() assistant or sanitize() with form_remote_for
How can I html-escape an input fieldin my form ? I cannot use them directly h(f.text_field ''name'', :size => 30 %) or sanitize(f.text_field ''name'', :size => 30 %) are incorrect.... <% form_remote_for :property, @property, :url => {:action => @action, :id => @property }, :loading =>
2006 Sep 20
2
Not receiving form data using form_remote_for
Hi. I''m having a problem that I am sure there is a simple solution for, but I can''t see it. I have the following partial: <% form_for :time_entry, TimeEntry.new, :url => hash_for_time_entries_url(:period => @period, :action => ''new''), :html => { :id => ''time-entry-form'' } do |f| %> <table border="0"
2007 Mar 14
9
file_field doesnt work inside form_remote_for
When I do file_field within a form_for things are fine... but within a form_remote_for, with nothing else changed, I find that the params does not even have the element document[uploaded_file] even though it is definitely present in the HTML source in the form. Obviously the file upload fails. Am I missing something? Or has someone else faced this? Or is this a known bug? Rajesh
2006 Aug 12
0
select in form_remote_for
I am trying to use a slect box in my form, but I am stuck with an error I cannot understand... here is what I wrote according to the documentation ... <%= f.select ("property", "user_id", User.find_all.collect {|u| [ u.name u.id ] }, { :include_blank => true }) %> user_id is a FK to a user (owner of the property) Associations : User has_many properties,
2007 Dec 03
2
before_filter application => exclude some other controllers
Hello again, It''s possible to use before_filter in the application_controller, and exclude for some methods from other controllers ? i have a before_filter in application_controller that checks if the user is logged, if the time hasn''t expired, ... and I want to exclude some methods of this check, like the login. This ''login'' belongs to other controller. I
2006 Jul 14
9
DRY Javascript Degredation
Hi, It seems there must be a better way to do this than what I am currently doing. I have a simple app that collects a users thoughts along with their email address and their first an last name. On a page that lists all the users thoughts they can click on a link to "add a thought" which then displays a form with ajax. My current methodology for this is not very dry. If js is
2011 Mar 04
1
form_for_tag - difference between that and form_remote_tag and form_for?
What''s the difference between form_for_tag and form_for? And between form_remote_for and form_remote_tag? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
2009 Nov 11
1
Unexpected behaviour of seq(from,to,by) (PR#14057)
Full_Name: Raimon Massanet Version: 2.9.2 OS: Linux Ubuntu 8.10 Submission from: (NULL) (147.83.71.76) # Hi there. # I'm not sure whether or not this is a bug. # But it surely is an unexpected behaviour. V <- seq(from=0,to=1,by=0.1) # Should generate a sequence with a step of 0.1 V==0 # [1] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE # Ok! V==0.1 # [1] FALSE
2007 May 09
1
How can I change a form's onsubmit event handler using rjs?
Hi all, I have a ajax form creating by "form_remote_for", whose url is to create a new model by default. The page doesn''t change after the ajax call on submit button so the form is still there after the new model is created. But if I submit the form for the second time, I want to update the formerly created model using an Ajax post. I think I could render an rjs at the end of
2009 Mar 01
15
Ajax in Rails
Hi All, New to the group, and new to learning rails. I''m having some trouble, i''ve done a few tutorials on creating some small apps with rails and am now starting to play around myself. I''ve been trying to create a simple form which when a user enters any data that data is displayed as a preview elsewhere on the page instantly, just like when creating an advert with
2010 Aug 01
0
fields_for can not group its params when ajax
hi book and page is one_to_many relationship.I want to create them in a single form.But when clicking create button,the submitted params for pages are not grouped correctly, i want "book"=>{"new_pages"=>[{"name"=>"", "color"=>""}, {"name"=>"","color"=>""}] but it is
2009 Feb 11
0
remote_form_for file_field strangeness
Does anyone see any problem with this form? - form_remote_for(Photo.new, :html => {:multipart => true, :target => :uploader}) do |f| .form_element = f.label :photo = f.file_field :collateral = hidden_field_tag :container_id, @shoot.id = hidden_field_tag :container_type, @shoot.class.name .form_element = f.submit ''Add Photos'' The photo has a
2008 Jul 08
0
Ajax form - updating with validation errors from model
Is there a DRY way to pass back errors from the model validation to an ajax form (form_remote_for)? Thanks for your help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1. Having this page: <h4>Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time =>
2007 Jun 03
3
remote_form_for issue
Hi everybody, I''m trying to change my current forms in my app to remote_forms. It was my understanding that remote_form_for and form_for work in the same way, so I just wanted to change the methods. My code looks like: <% form_remote_for :post, :url => posts_url do |f| %> <%= render :partial => ''form_posts'', :locals => {:f => f} %> <%=