Displaying 20 results from an estimated 7000 matches similar to: "How to POST raw data?"
2006 Apr 05
7
Regex for splitting string
Hi
We have a search website where the user can type in individual words 
separated by spaces and/or phrases enclosed in single or double quotes. 
We are looking for a way to obtain a list of words and phrases from the 
search string.
Can someone help?
Thanks,
Yash
-- 
Posted via http://www.ruby-forum.com/.
2006 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many. 
The join table Communities_Users has additional fields [ is_active, 
is_blocked, join_date] etc. These are populated using 
@user.push_with_attributes(:is_active => true,...).
Later on how do we update or retrieve the attributes in the link table 
for a given user or a community with doing it explicitly using SQL?
Thanks,
2006 Feb 08
2
How to install RailsCron?
Hi,
I would like to start running a background procedure once a user logs in 
to his account on the website. For this I am considering using the 
RailsCron object. However, I am not able to download it. I am new to 
Rails. Can someone give me the excat command I should use to get 
RailsCron?
Can someone suggest a better way of running a procedure in the 
background?
Thanks
-Yash
-- 
Posted via
2006 Feb 11
1
Instructions required for RailsCron
Hi,
I am writing a client-server rails app. The client and server maintain 
similar databases. Periodically, I would like them to synchronize their 
databases. For this, in the application, once the user logs in, I want 
to spawn a background process at the client that first sends the 
client''s new data and then receives the server''s new data.
I am thinking of using RailsCron for
2006 Mar 30
1
What is the entry-point for a rails app?
Hi,
I would like to run a DOS command such as "net send ..." when I start 
the rails application using script\server. Can you please tell me where 
I need to put the call? Is it environment.rb by any chance?
-Yash
-- 
Posted via http://www.ruby-forum.com/.
2005 Nov 27
0
How to get raw_post in functional tests
Hi !
I'm testing PayPal integration, and am using the Paypal gem.  The
Paypal gem requires the raw POST data, and not the pre-munged version
that Rails uses.
Running in dev mode, everything works fine, but in the tests, I can't
seem to get at the data.
I did:
class ActionController::TestRequest < AbstractRequest #:nodoc:
  def raw_post
    raise "RAW_POST Request"
  end
end
2009 Mar 18
1
uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
Hi guys,
  I''ve just installed Rails 2.3 and I am using the clearance plugin
with cucumber features. When I run rake features I get this
"uninitialized constant ActionController::AbstractRequest (NameError)"
error from webrat trying to call AbstractRequest which now is called
Request (I think). My question is : Is there any way to alias the old
name to have backwards
2006 Jun 28
1
accessing multiple observe_field from one callback
I have a form that has 4 text_field entries, each one with an 
observer_field and i want to access the data that is currently inserted 
on every field from the :update method for each field. i tried using 
instance variables but it appears that each text_field creates an 
instance of the searchcontroller for its own.
I also tried using the :with => "something" on the definition of the
2006 May 10
0
using Rails 1.1 param parsers
Hello,
I want to use the new param parsers in Rails 1.1 to process POST''ed xml form
data (at the moment I manually parse request.raw_post using REXML). As per
Scott Raymond:
*"Pluggable parameter parsers* make writable REST web services a cinch. By
default, posts submitted with the application/xml content type is handled by
creating a XmlSimple hash with the same name as the root
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
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
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi.  In my environment.rb, I have:
ActionController::AbstractRequest.relative_url_root = "/foobar"
In my layout, I have:
<%= javascript_include_tag :defaults %>
Question 1:
I am getting an error:
ActionController::RoutingError (no route found to match
"/javascripts/prototype.js" with {:method=>:get}):
When I remove the relative_url_root, everything works great. 
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
2008 Jan 31
2
Facebooker and file_column
Facebooker URL Rewriter stuff overloads ActionController::AbstractRequest.relative_url_root, causing a conflict with the plugin file_column and possibly other utilities.  file_column constructs image URLs using the server host and relative_url_root
This is not related to the sandbox patch I added to the rewriter.  Facebooker overloaded relative_url_root before I touched it.
I''ve
2006 Jun 22
2
[PLUGIN] url_for_with_prefix - allowing you to modify/remove prefixes easily
Here''s the readme.  I think it''s okay to post this kind of thing to
the mailing list.  Anyway, hopefully someone else finds this useful.
UrlForWithPrefix
================
By Pat Maddox
Very simple plugin, adds the :prefix option to url_for.
Say in your environment.rb file you''ve got
  ActionController::AbstractRequest.relative_url_root = "/super"
Any time
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 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 Feb 04
2
Looking for tools developed on Rails
Hi,
We are trying to setup a tool developed on Ruby on
Rails, that provides a Project Dashboard, with the
following features:
Abstract of the project.
Task list
Calendar
The task list should provide:
Task Name
Owner
Start and end dates
%completion
Dependency, etc.
The Calendar should provide
Day, Week and month views.
Can you please suggest some tools with available
source code that loosely
2006 Mar 22
1
How to go DRY?
We are creating a website for creating and maintaining communities. When
members of a community are listed, we show their summary in a TABLE. So
we have written a _member.rhtml partial to show this summary for that
member. To show the memberlist we do
render :partial => member, :collection => @members
Now the problem is the row displayed for every member by the _member
partial, may differ
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