Displaying 20 results from an estimated 60000 matches similar to: "Forcing a POST"
2006 Mar 22
0
Lighttpd aliased does not render css or images - please help!
Hello all,
I''m very badly in need of help here. I''m sooo close to this solution, and I
WILL be blogging this when I finally have it working.
I''m using Lighttpd + Mongrel + aliased app. I have the basic alias
working. http://localhost/myapp/ renders the routed :controller/:action as
does http//localhost/myapp/controller/action for production pages.
The page source
2006 Feb 05
0
[GLOBALIZE] Trouble getting example on wiki working
Hi,
I decided to integrate globalize into my app yesterday but I''ve run into
trouble.
I originally decided to try a db translation on one of my models so I
followed the wiki example and modified where appropriate.
When I tried to create an empty Album via the console I get the
following error:
http://www.rafb.net/paste/results/opZ13I27.html
I tried to investigate and from what I
2005 Dec 16
3
Help with error
I am getting this error
NoMethodError in Admin#add_to_project
undefined method `find'' for #<Project:0x249da88>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/
base.rb:1501:in `method_missing''
./script/../config/../app/controllers/admin_controller.rb:65:in
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 Oct 06
0
link_to with :post => true causes "link hop" on submit
I have a link_to function that I''m calling with :post => true. When I
click it, the link (which is in a table cell) moves up a bit and pushes
the next table row down just a bit, like it''s hopping.
My guess is that in the generated Javascript (by link_to), the addition
of the form to the DOM is causing the link itself to move.
Anyone seen this before, and if so, know a
2008 Jun 16
5
Re: ssh between DomUs in Xen3.2
Hi Waldirio:
I tried telnet earlier from one DomU to another
[root@localhost ~]# telnet 192.168.17.201 22
Trying 192.168.17.201...
Connected to 192.168.17.201 (192.168.17.201).
Escape character is ''^]''.
and then it just hangs...
So it looks like I can connect to the port from DomU to DomU.
But from Dom0 to a DomU
[root@gxn-wn2 ~]# telnet 192.168.17.201 22
Trying
2005 Dec 15
3
Another session question
I want to give a user a form to create a new Product, but instead of
persisting the product to the database I want to store it in a
session first for category assignment, etc.. (in other controllers)
So when the user describes the product on the form I have a "Save and
Continue" button pointing to the action add_to_product_factory:
def new_product
@product = get_product
end
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
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
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
2006 Jul 07
8
Possible name clash?
Scenario:
Table in database has two fields, id and category (table name is:
categories)
Controller is named category_controller.rb
Model is named category.rb
Helper is named category_helper.rb
Form is named list.rhtml in view\category directory
The code in play on the form is (from generating scaffold):
<% for category in @categories %>
<tr>
<td><%=
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers,
For some time now I''ve been looking for a decent Rails equivalent of PHP''s
"htmlentities" command, because ERB''s html_escape (or more commonly called as
just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me.
Back in PHP land, I actually had an extended version of the htmlentities
command to deal with
2016 Feb 11
2
rpm containing gmessage???
On 02/11/2016 01:48 PM, Frank Cox wrote:
> On Thu, 11 Feb 2016 13:42:39 -0500
> ken wrote:
>
>> Maybe I haven't run the correct yum commands or looked in the right
>> repo, but I haven't found a utility called 'gmessage'. Anyone know
>> where to find it?
>
> gmessage has been more-or-less superseded by zenity.
>
That's nutz. From docs
2007 Jul 06
1
Edge, link_to and mocks
Hi All,
Anyone noticed that using the newer link_to syntax in edge currently
fails with mocked objects in view specs or helpers.
eg. if you have something like the following in your view (or
equivalent in a helper):
<%= link_to @dog.name, @dog %>
as opposed to the current 1.2 syntax:
<%= link_to @dog.name, dog_path(@dog) %>
Using a mock_model as the ''dog''
2010 Jun 17
1
Help .. A question about if then
Please be gentile ... I am new at this ror thing
I have a view which looks like this
<h1>Nicaragua Stamps</h1>
<table id ="stamps">
<tr>
<th>Scott</th>
<th>Maxwell</th>
<th>Description</th>
<th>Url</th>
<th>Mint</th>
<th>Used</th>
</tr>
<% @stamps.each
2006 Jan 17
2
link_to_remote() - can I post data with it???
can I post data with link_to_remote(),
link_to() has special option :post => true and viola
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/2a0a00af/attachment.html
2005 Mar 05
3
routes inconsistency?
Hello,
As a small excercise in learning rails, I''ve been porting a very
simple website from SSI to rails (yep, a bunch of static files that
were previously served with a tiny bit of SSI magic are now served by
a database-backed rails, it''s total overkill, I know). Part of the
reason is that I''m trying to move from apache to lighttpd, and
lighttpd''s SSI for
2012 Nov 01
2
SyntaxError in Posts#index
getting this error
compile error
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''=''
...w Goal", new_post_path, class="btn btn-success" );@output_bu...
^
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND
''); @posts.each