similar to: link_to with :post => true causes "link hop" on submit

Displaying 20 results from an estimated 20000 matches similar to: "link_to with :post => true causes "link hop" on submit"

2006 Jul 03
2
1.1.4: link_to with mixed case controller names "broken"?
I have a side navigation bar with links embedded in it like the following: <%= link_to( ''Create Job'', { :controller => ''eSimply'', :action => ''upload'' }) %> This link now shows a routing exception Recognition failed for "/eSimply/upload" This link has worked for over through Rails
2007 Feb 27
1
link_to :post true Newbie question
Hi All, I am attempting to use a link_to helper to perform a form post using the following construct: <%= link_to ''Save'', {:action =>''create''}, :post => true %> What I find is the parameters passed to the webserver are empty. My model validation stuff triggers indicating the fields in question are empty too. This is to create a new DB entry so no
2006 Feb 14
0
help: link_to with :post => true
I''m having trouble getting anything in the params hash when I do: <%= form_tag(:action => ''edit'') %> <table border="0" id="detailtable"> <tr> <td>* Email:</td><td><%= text_field_tag(''member[email]'') %></td> </tr> <tr> <td colspan="2" /> </tr>
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello- I would like to know what the suggested practice is for having multiple submit buttons on a relatively complicated input page. Let''s use the example of a Contact. There is lots of info there, including name, address, phone number. There is also a list of "contact associations" which can be modified on the same page. Ideally, the user could have one
2011 Apr 28
0
link_to with :remote=>true and how about :before=> ?
Hey Guys, Before Rails 3.0 I was to be able invoke some javascript before and after an ajax call was made, like this: link_to_remote "aLabel", url, :before=>$(''indicator'').show(), :complete=>$(''indicator'').hide() In Rails 3.0, I understand I need to use link_to and pass the parameter :remote=>true. link_to however, doesn''t accept
2007 Mar 06
1
link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question
Hello, I want to have the following features in my rails application: 1. the program should have AJAX if Javascript available 2. I want to protect my application described in http://www.w3.org/2001/tag/doc/whenToUseGet.html - means GET should be safe 3. if Javascript is disabled the application should work too (without AJAX) If I use "GET should be safe" option (verify) and link_to
2006 Jun 01
2
using :post => ''true'' still makes a GET request
Hi, In my link_to''s, i''m adding the additional parameter :post => ''true'' whenever I expect to change database state on the server. Problem is, when I look at the incoming requests, I see that they are all coming in as GET requests instead of POST requests. Also, the link adds post=true as a name value parameter in the URL as it would with GET requests. I
2014 Mar 29
0
rails 4 link_to post method
I have a rails 4 app that has a link_to with a post method but I keep getting: No route matches [GET] "/payments/136330" <%= link_to("Buy Now", buy_path(list_item), :method => :post) %> Ideas?? -- 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
2012 Feb 29
4
how to use link_to with :remote=>true in rails 3.2.1
I m using Rails 3.2.1. how to use link_to with remote=>true -------------------------------------------- My Method in Controller def clickme @clk = "you click me" respond_to do |format| format.js { render :layout=>false } end end -------------------------------------------- My View In my new.html.erb file <%= link_to "click here",
2006 Jun 09
5
Using link_to with an image tag & link text
Hi , I was trying to use link_to along with image_tag to setup a link that would open in an external window. But I was unable to make a link using both text & an image So my current workaround looks like this inside a partial where link is http://foo.com & text would be descriptive <img src="images/arrow.gif" border="0"/> <%= link_to(text, link, :popup
2008 Oct 31
6
link_to submit form value 2
Hi to all, I''d like to pass with a link to values inside some form. I''ve read in other posts that it''s possible if i include the forms inside a html <div>... So here it''s my code of the view : <div id="study"> <table> <tr><td><label for="study_titolo">Titolo di
2006 Mar 10
0
link_to(... :popup => true) problem
I have a file_column that points to a pdf. I want that pdf to open in a new window, thus wrote the code: <%= link_to(''PDF version'', url_for_file_column(''floor_plan'', ''pdf_file''), :popup => true) %> which generates the code: <a href="/floor_plan/pdf_file/12/first_floor.pdf" onclick="window.open(this.href);return
2010 Jul 06
0
Rails 3: link_to :remote => true with spinner
How is this most efficiently done? link_to_remote is gone. I am using jQuery and am wondering how I could bind beforeSend call back with my link_to :remote => true call. So that I can use it to draw spinner. Sharkie -- 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
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
Windows XP Pro Rails 1.1.2 I need some help verifying this behavior that I''m seeing. BUG: Objects in session which are descendants of ActiveRecord::Base lose attributes on subsequent requests when using CGI::Session::MemoryStore. TO REPRODUCE: 0) Set up MemoryStore as the session database manager in the appropriate environment.rb file in config 1) Create a model object X that
2006 Jan 20
4
[newbie]how to use link_to to link to another controller?
I am just diving into Rails and I am a bit puzzled by the link_to function. am writing an app to display my photographs in categories. My application layout has a sidebar to show a menu with categories from the categories table in the database (like in taken from the tutorials), to be shown on every page. I managed to get a global @menu_categories object that keeps track of all the categories
2006 Apr 24
2
link_to external link
I have searched through the api several times through and can''t seem to find this. <%= link_to ''Help'', {:url => ''https://www.example.com/page?AppServeHelp''}, {:target => "_new"} %> but this doesn''t work as it still prepends the current server/controller space on the url itself. How do I accomplish this? Thanks Craig
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi, How can we trigger a JavaScript built in function from a <%= link_to %> ie. i have the below statement in my view. I want to invoke a JavaScript function on "MouseOver" of this below text (''TestingMouseOverEvents''). <%= link_to "TestingMouseOverEvents" , :controller => "login", :action => "logout"%> Note: The
2008 Feb 19
1
adding an onclick option to link_to method
Hello, I''m trying to use the rail link_to to open a popup window and then print the popup window at the same time. Is there a way to add another "onclick" option to tell the popup to print? I know how to do this in javascript but not sure how to use the rails help to do it. I also am aware that the link_to_function method is used to call a javascript function.
2006 May 08
5
The true merit of non-memory based session stores
All, There is an assertion in AWDWR that the in-memory session store is "too simplistic." However, I find myself nudged in this direction by the need to keep a non-serializable model attribute available in my session and the relative pain of implementing either a custom serialization scheme for the model in question (or a custom caching mechanism so that I can store my attribute
2006 Jul 07
5
link_to: link is missing id
I''m using a legacy table, where the unique id is not ''id'' I have a Model class like the following: class Article < ActiveRecord::Base set_primary_key "ARTICLE_ID" end however, using a link_to like the following (modified scaffolding), the link has no id value: <% for article in @articles %> <tr> <% for column in