Skip to content

http request-response via rails console

January 18, 2012

> app.get ‘/home’
=> 404
> app.get ‘/’
=> 200

> app.get ‘/braintree_webhooks’
=> 200
> app.response.body
=> “nchngdfy8n6dnx4j|3d259785a0a3054ab76425a0b442ccb6219e3cc8”
> app.response.status
=> 200

http://stackoverflow.com/questions/151030/how-do-i-call-controller-view-methods-from-the-console-in-rails

http://stackoverflow.com/questions/5725581/rails-issuing-post-and-other-http-requests-from-the-rails-console

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: