similar to: Not receiving form data using form_remote_for

Displaying 20 results from an estimated 100 matches similar to: "Not receiving form data using form_remote_for"

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 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:
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 =>
2009 Feb 10
0
Re: form_remote_for NOT passing param: I want put and I get
Your :method is in the wrong place, it belongs after the first hash, look at the docs for the form reote for -----Original Message----- From: Raimon Fs <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> Sent: Tuesday, February 10, 2009 5:08 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: form_remote_for NOT passing param: I want put and I get
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 =>
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
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,
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 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
2013 Mar 30
1
How to use group in nested associations
The below query fails: Timesheet.joins(:time_entries).select("timesheets.*, sum(time_entries.worktime) as total").group("timesheets.start_date") The models have the following relations: Timesheet < AR has_many :activities, dependent: :destroy, inverse_of: :timesheet has_many :time_entries, through: :activities accepts_nested_attributes_for :activities,
2013 Mar 04
2
accepts_nested_attributes: undefined method 'association'_attributes
I have 2 models Timesheet and TimeEntry: class Timesheet < ActiveRecord::Base attr_accessible :status, :user_id, :time_entries_attributes has_many :time_entries, dependent: :destroy accepts_nested_attributes_for :time_entries, :reject_if => proc { |attributes| attributes[''worktime''].blank? } end class TimeEntry < ActiveRecord::Base attr_accessible :task_id,
2008 Oct 30
3
why does sample(x, n) give the same n items in every separate runs?
Hello R users, I have gene expression data of two groups of genes (large and small). Gene expression intensities of those genes are classified into 1 to 10 levels. What I want is to make a random set of genes that have the same levels as the small group from large group using sample(). I used smallvec to hold the number of genes in each levels (1 to 10) for small group, largevec for large group.
2005 Sep 28
0
search engine, select the selected option
hey, i have a search engine that let u search on the an employee how can i make that if the user select "employee1" , on the next page "employee1" is selected this is my code (rhtml) <tr> <td><label for="employee_id">Employee</label></td> <td colspan="3"><%= select "employee", "id",
2013 Mar 04
0
fields_for with accepts_nested_attributes: how to pass a value to a label
I can''t figure out how to pass a value from the following object build in the controller: class TimesheetsController < AC ... def new @timesheet = current_user.timesheets.new now = Date.today #generating 7 time entries: monday through sunday (now.beginning_of_week..now.end_of_week).step { |date| @timesheet.time_entries.build(:workdate; date) end end ... In the
2013 Mar 25
1
validates presence of foreign key fails in nested form
I''m using accepts_nested_attributes as follows: class Timesheet < ActiveRecord::Base attr_accessible :status, :user_id, :start_date, :end_date, :activities_attributes has_many :activities, dependent: :destroy has_many :time_entries, through: :activities accepts_nested_attributes_for :activities, allow_destroy: true end class Activity < ActiveRecord::Base attr_accessible
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 Jul 29
0
dlmSum(...) and non-constant state space models
Hello, I would be very grateful if somebody more knowledgeable then me could assist me in the following. I have two (three actually but for simplicity I will say two) models which I would like to fit jointly as a state space object. Here are the equations: (1) w = a1 + b1*(p) + e1 a1 = a1[t-1] + g1 g1 = g1[t-1] + e2 b1 = b1[t-1] + e3 (2) d = a2 + b2*(w) + e3 a2 = a2[t-1] + e4 b2 = b2[t-1] + e5
2007 Sep 20
2
Rendering a partial from within that partial
I am having trouble rendering a partial called ''names'' through a submit tag located within that partial. The form data is saving with my current code. However, the existing data is not loading into the form and the partial is not being re-rendered upon submission to reveal the changes to this data.What might I do to fix this? show.rhtml <%= javascript_include_tag :defaults
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
2013 Mar 26
0
nested forms: use validate :some_method works in update mode only
I have a strange behavior when validating a record in a nested form. The association collection is empty when creating a new record and the validation does not catch the error. But when updating the same record the validation gets it right but continues to catch the error even after modifying the needed attribute value to make it pass. Here is the model: #timesheet.rb class Timesheet <