similar to: I thought Rails 3.2 ActionController automatically converts JSON params hashes...

Displaying 20 results from an estimated 400 matches similar to: "I thought Rails 3.2 ActionController automatically converts JSON params hashes..."

2013 Jun 25
1
Broken URLs to guides and APIs on rubyonrails.org
This is some feedback for rubyonrails.org. My apologies if this is the wrong forum to bring this up, but I wasn''t able to find a "Contact us" link on the site. As of this writing, if I go to Google and search for "active record observer validations", the top 2 results are: http://guides.rubyonrails.org/active_record_validations_callbacks.html and
2011 Oct 16
2
current_path?
What''s the best way to retrieve the current path? (i.e. /posts/1) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2013 Oct 23
3
Rails 4 and HABTM Checkboxes: Unpermitted parameters error
I have a simple Rails 4 project with two scaffolded models: Practice and Practitioner. I have set these both as habtm and am in the process of adding checkboxes to the Practitioner form so that I can check off the practices that this practitioner belongs to. In the practitioners_controller, I added practice_ids to the practitioner_params permit list, but I am still getting the error: Started
2013 Feb 28
1
how to use before_filter to decrypt post data
hello, everybody. in ror, we can add a after_filter to a controller. def aes_encrypt response.body = AesHelper.aes_encrypt(response.body) end after_filter :aes_encrypt and all action''s repsonse int the controller can be encrypt. and my question is , how to decrypt data use before_filter, or anything else. ex: i want to post json data to /usr/register, the json data is
2007 Oct 16
1
Stub ActionController::Base#params
Has anyone had any success stubbing ActionController::Base#params? The following is not intercepting calls to params[:foo] in my controllers: ActionController::Base.stub!(:params).and_return(:foo => ''bar'') -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/282a76ba/attachment.html
2006 Aug 06
1
Where is ActionController::InPlaceEditing?
I can''t find this doc anywhere, but the JavaScriptMacrosHelper doc mentions it. Jose -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external asset host. I''ve got the lines below in my environments/development.rb file. # Enable serving of images, stylesheets, and javascripts from an asset server config.action_controller.asset_host = "http://assets.example.com" #make rails think it lives in /app
2006 Jul 03
0
ActionController parameters and conditional select
Hello everyone, I''m pretty new to Rails and have been working on my own test app to check things out. I''ve run into a couple of Nuby snags. I''ve looked for the answers but have not found a concise answer to my problem. What I would like to do is to have a table of ''people'' and be able to display a list of ''people'' based on
2006 Jul 04
0
ActionController::UnknownAction hangs application
I''m trying to override rescue_action_in_public() using the PP example, but my application hangs every time I generate an error. def rescue_action_in_public(exception) case exception.class when ActiveRecord::RecordNotFound, ActionController::UnknownAction render( :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not
2006 Jul 20
3
ActiveRecord/ActionController in javascript code
Hi, I have a javascript file for generating a menu when the user hovers over a link. These links are basically a list of logged in users. Now, in the menu I would like to have a link to "Display Profile" so that a user can view the profiles of other users. Also nice would be a picture in the menu. The problem is obviously that the javascript expects static links. But I want to
2006 Jul 30
1
ActionController
I m pretty new to Rails. Can you help me in this... ActionController: Create a controller that will find a specific as well as all orders of a given customer. Consider there is a table names Order and Customer. Can you help me with the code? -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
1
What is class TestController < ActionController::Base
What are the different parts of; class TestController < ActionController::Base? I look at the http://api.rubyonrails.org/ and try to understand but I don''t. Could someone give me a hint? I get the part of Test being the "folder", def and all that, but I can''t find an explanation of the basic stuff. -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
0
disable escaping of ActionController::Base.url_for
Hi! I am trying to use rails for a wml/wap application. Submitting forms with wml goes something like that: <input type="text" name="search" value="" /> <a href="/portal?search=$(search)">goto</a> The wap browser replaces $(search) in the url with the text entered in the input field. Now to my problem. To use the routing information
2006 Mar 07
1
How does the ActionController class get loaded/accessed?
I am trying to access the Upload Progress feature in Action_Controller. When I add Action_Controller::Base.enable_upload_progress to my environment.rb file, and restart WEBrick, I get the following error: C:\eclipse\workspace\eSimplyOnlineRails>ruby script/server => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/ dependencies.rb:195:in
2006 Mar 11
1
actioncontroller sans view
just wondering if theres a more idiomatic way to avoid the `assert_existance_of_template_file'' error than passing an empty block to render :update (or hacking up the actionview::base class). ive tried various things like render :template => false/nil etc and havent seem to found a magic trick.. i realize most times a controller would want a view but various cases during
2006 Mar 16
0
ActionController::Verification problem
Hello, I have a subscriptions model and a ''new'' action in subscriptions controller to create new subscription. Also, I have a ''thankyou'' view, which I want to display only if user is just subscribed. So I want to block access to http://localhost/subscriptions/thankyou action with a verify filter. Here is my code: class SubscriptionsController <
2006 Mar 17
2
How to specify default action for particulr actioncontroller
HI, How to specify default action for particular actioncontroller? Currently when I m typing the URL as "http:\\localhost:3000\actioncontroller_name" , then I m getting the default actin page as list.rHtml. But instead I want my action page to be index.rHtml. How to do it? Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
0
ActionController::Verification problem (sorry if it is double post, I''m not sure about the first one)
Hello, I have a subscriptions model and a ''new'' action in subscriptions controller to create new subscription. Also, I have a ''thankyou'' view, which I want to display only if user is just subscribed. So I want to block access to http://localhost/subscriptions/thankyou action with a verify filter. Here is my code: class SubscriptionsController <
2006 Mar 24
2
Expiring cached actions outside of ActionController
In the site I''m building, my models are *almost* never updated within ActionController-- all new data comes in via command line scripts manipulating ActiveRecord directly. Can anyone offer any hints about expiring cached actions without Sweeper? -Ross
2006 Mar 27
0
Where is ActionController::TestRequest documentation ?
Hi, I didn''t found any doc about this class - I''m looking for a solution to include a multipart uploaded file in a post request for testing purpose. How can I do ? Thanks -- Posted via http://www.ruby-forum.com/.