similar to: change post form to get form

Displaying 20 results from an estimated 200000 matches similar to: "change post form to get form"

2006 Jul 24
0
Trouble passing form input to controller action
Hi all, I''m having trouble passing my form intput from a "view" into the controller to perform the qury. I''m looging at teh log and the controller is not picking up the values i enter in to the form at all. It evaluates to NIL. Here is the log output Processing StoreController#display_search (for 127.0.0.1 at 2006-07-23 21:30:35) [POST] Session ID:
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart` from a Heroku application to Facebook. I have the following JSON object: {"message"=>"My message", "image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490 @original_filename="neEZYMAnBI.jpg", @content_type="application/octet-stream",
2006 Jul 02
1
Subject: Trying to Get Results from Form Element
I am trying to create an application loosely based on the Depot application presented in Agile Web Development with Rails (AWDwR). I am using the folowing controllers: admin_Controller application_Controller city_map_controller (with method: displayGMap) == Code Extract from city_map_controller == # Show a Google Map on a new page def displayGMap # @mapPoint = Gmap.find(params[:id]) # DBUG:
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi, I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2009 Feb 09
2
how to get form parameters while using fields_for with nested attributes
hi all.. i am trying to use *fields_for* to get and save nested attributes in a form. i have a ''Partner'' model associated with an ''Address'' model. partner has_many :addresses although the form is displaying fine, but on submitting it the following error is shown: *can''t convert HashWithIndifferentAccess into Array* on this line: *@partner =
2006 Dec 26
0
acts_as_taggable Plugin issue (not gem)
I tried to post this earlier, but it never came through. I''ve got something working in console, but not in controller. Any idea why? This is the plugin not the gem of acts_as_taggable *View* <code> <h1>Listing elements</h1> <% if @elements.blank? %> <p>There are currently no elements in the system tagged <%=
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field = form_for (Clip.new), :html => {:multipart => true} , :remote => true , do |f| = f.hidden_field :user_id, {:value => current_user.id} = f.text_field :name = f.text_area :description = f.file_field :image = f.submit I18n.t(:add) generating the html code <form accept-charset="UTF-8"
2006 May 04
2
How can I get posted params in correct order?
I''d like to have posted form field data in the same order they were in the form. Raw_post shows the data in correct order but params hash doesn''t. This happens every time (tried it with webrick). Any ideas how to get an array of objects in the correct order? -- Posted via http://www.ruby-forum.com/.
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all, I have two comboboxen, comboA is popultaed when :controller/list is retrieved first time. When comboA is selected, I want to auto-populate comboB (modelB belongs_to modelA). The population of tableC (modelC belongs_to modelB and belongs_to modelA) should not populate until a "GO" button is clicked (link_to with submit). Help? I need an example of how to filter the post
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code to follow). I have a form to create a new book. This book can have many authors and I wanted to be able to add the authors based on if they appear in the authors table. I originally was going about it a long and arduous way where I had several forms. After thinking about it I decided to dynamically add new fields to
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
2006 Jun 23
3
form_remote_tag is not passing form params
I''ve searched and searched and searched again, and I cannot find any help with this problem. There''s an identical problem on this forum, but it was never resolved. I''ll try to re-open the subject with a bit more information. Problem: The form_remote_tag() method in my "list" view is not passing the params[] hash of the values stored within my form.
2006 Jul 03
1
how to get value from the post on the List page
Hi, I''m new to Rails. I''m building a candidates tracking system for recruiting. I have a List page, but instead of listing every candidate, I only wanted to list the candidates in certain statuses. The first time List page is hit, by default, it lists candidates in status < 9. But on the List page, there is a dropdown where all the statuses are listed, so that when user
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2007 May 31
1
Form Change Old Password
Hello there, I want my users to be able to change their password. I wrote the code below but I need help to add error if the old password he posted did not match the current password he have. In the controller I have: def my_profile_password return true unless request.post? @user = current_user if @user.check_password(params[:old_password]) @user.update_attributes(params[:user])
2006 Aug 04
1
Need a better undersanding of form helpers
perhaps someone can take a little time to give me a better understanding of how to use form helpers. Here is what I''m working with in my app: user model - (the table where a user registers their information) it contains the following fields - first_name last_name email account_type (currently set to string but will probably be a select box with options) password_salt (I''m
2006 Feb 27
1
Nested hash from form params into create()?
Hi, I''m really excited about getting the create() method working on a nested hash. The Rails book make it seem like I''m close to doing the right thing but I think something very small is not quite right. The error at the below isn''t giving any hints that I understand. I have a form that produces a nested params hash and sends it to my add_to_cart controller method.
2016 Mar 16
2
RFC: A change in InstCombine canonical form
On Wed, Mar 16, 2016 at 8:34 AM, Mehdi Amini via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > How do it interact with the "typeless pointers" work? > Right - the goal of the typeless pointer work is to fix all these bugs related to "didn't look through bitcasts" in optimizations. Sometimes that's going to mean more work (because the code
2008 May 30
4
RSpec Post/Get and Sessions in a Story
I''ve got an RSpec story that reads like: ------------------------------------------------------------------- Given that a post exists And I am logged in And I have edit permissions When I visit the post details page Then there should be a link to add a new comment ------------------------------------------------------------------- The issue I''m having is that I can''t
2006 Aug 01
0
SEARCHING w JOIN in one-to-ma,y relationship
I am doing a Search in my ''properties'' table on column ''name'' using in my controller : conditions = ["name LIKE ?", "%#{@params[:query]}%"] unless @params[:query].nil? this ''properties'' table has a FK (owner_id) in teh column ''owner'' to link it with the table Users... I can display the owner.name, and