Displaying 20 results from an estimated 60000 matches similar to: "post params"
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/.
2006 Mar 05
2
Sending http post requests
I''m trying to send http post request in the controller to a web address.
In my application I''m using ajax to communicate with the controller, and
then use the controller to pass the message on to a remote server,
something you can''t do using ajax because of browser security problems.
Just wondering what the syntax for a http post is in rails.
Thanks
Alex
--
Posted
2007 Feb 26
3
POST data not coming through
I developed an application using Rails and the WeBrick, and now I''ve
moved it to the production server using apache/fcgid. Now, however,
post data is not being populated in the params hash. Even a simple form
with one hidden field, which works fine as a GET request, does not work
using POST. The problem isn''t with the form, as I''ve posted the data to
a simple php
2006 Apr 19
3
Flex or OpenLaszlo
I''m just wondering if anybody has got any experience in integrating Flex
or OpenLaszlo with Rails and which people prefer.
I''ve seen some of the tutorials but am pondering which one, if any, I
should turn to:
http://coenraets.com/tutorials/flexonrails/flexonrails.html
http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1
2006 Mar 07
1
has_and_belongs_to_many tags
I''m trying to create a search where I can find pages by their tag name.
Here''s a sample of my code (not working).
@tags = Page.find(:all, :conditions => ["#{:tag.name} LIKE ?",''%'' +
@params[''searchtags''] + ''%'' ])
My enviroment:
I''ve got a table called tags, and a table called pages, both with a
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this:
@lang = params[''lang''] || ''en''
@errors = request.raw_post
@feed_stats =
Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang="
+ @lang), @errors)
render :text => @feed_stats
However whenever I run this I get an error message:
undefined method `post_form'' for Net::HTTP:Class
2006 Jul 05
2
How do I access the session in a rails plugin?
I''m trying to access the session in a rails plugin, so as to set it as
below.
1. module Juggernaut
2.
3. def self.set_channels(chan)
4. session[:juggernaut_channels] = chan
5. end
6. end
7.
8. module ActionController
9. class Base
10. include Juggernaut
11. end
12. end
At the moment I get: undefined local variable or method `session'' for
2011 Jun 24
9
[PATCH] xen_disk: cope with missing xenstore "params" node
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
When disk is a cdrom and the drive is empty the "params" node in
xenstore might be missing completely: cope with it instead of
segfaulting.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
hw/xen_disk.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git
2006 Dec 29
4
Remote API passing in parameter named 'action', routing loses it
I''m working with a remote API that calls a URL in my app, passing in a
parameter named action. So the request would look like:
http://localhost/my_controller?action=foo
Routing correctly interprets the controller action as index. However,
it sets params[:action] to index as well. I know that''s how it''s
supposed to work...but it means I lose the action parameter
2006 Jul 21
4
observe_field submit behavior
I am using observe_field on a number of multi-selects and checkbox form
elements whose values would normally come in as arrays on a normal
(non-Ajax) form post.
I understand that by using the :with => ''name'' I will get name=value in
the request.raw_post however if the field I am submitting has mutliple
values and the name is of the form ''name[]'', I get
2006 Jul 20
16
Juggernaut Released - (a.k.a Armageddon)
I''ve just released Juggernaut - a plugin for ruby on rails.
Check out the site: http://juggernaut.rubyforge.org
I?ve also finished a demo that illustrates some of Juggernuat?s
capabilities. You can sign up for an account here:
http://alexmaccaw.no-ip.info:3500/login/sign_up . It might be a tad slow
as it?s running from my home machine.
Juggernaut for Ruby on Rails initiates a flash
2006 Feb 28
6
Log Files in View
Is it possible to display the log files in the view?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2008 Jul 09
2
setting request.raw_post with rspec-rails
... is there a way to do this? We have some REST-ish POSTs we''d like
to spec out. In the controller this gets accessed with
request.raw_post.to_s, is there a way to set this with rspec?
Thanks as always,
Francis
2006 Feb 11
1
How to POST raw data?
Hi,
I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.
Can you help me with this?
Thanks,
Yash
--
Posted via
2006 Nov 19
3
Binary PUT requests are failing
Does anyone know why binary PUTs are causing a 500 error in Rails? Non
binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve
tried using both mongrel and webrick.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Mar 29
6
Simply Getting Post Params
I am a complete Rails newbie and am trying to understand how I can
simply get the data from a password field in a form that is not mapped
to a field in the database.
The scenario is this. I have a User model that is mapped to a table
users with the following fields: username, email_address, password and
join_dt. Following pretty closely to the login section in the Agile Web
Development with
2006 Feb 09
1
Irb Web Interface
I was wondering how to give the Ruby on Rails console a web interface
like this website http://tryruby.hobix.com/.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 22
1
Newbie question about using helpers in controllers
I''m trying to display a list of pages in xml. I want to change
page.update_at to distance_of_time_in_words_to_now. However whenever I
run it I get an error saying:
undefined method `distance_of_time_in_words_to_now''
I know I can just go the rails api and copy the source, but there must
be another way.
def list
@page = Page.find(:all, :order => "updated_at desc")
2006 Jun 26
6
paypal ipn from leetsoft
Has anyone had any luck with the paypal gem from leetsoft (Tobias
Luetke)?
I''m successfully sending off and making payments, but the ipn doesn''t
send back to my site. I have the notify_url set in the form, have a
action set for the ipn postbacks, but all I get from my sandbox after
payment is a "view shops" page from paypal after payment is made.
--
Posted via
2007 Oct 15
9
POST with huge HTTP body
Hi,
I found the following page describing how to stream data from the
server to the client:
http://api.rubyonrails.com/classes/ActionController/Streaming.html
I want to do the opposite, streaming data from the client to the server,
letting the controller saving the data while it''s being received.
In particular, I want to upload large files to the RailsDav