search for: action_controller_overview

Displaying 4 results from an estimated 4 matches for "action_controller_overview".

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 Jul 06
2
I thought Rails 3.2 ActionController automatically converts JSON params hashes...
Hey, I was thinking I''d have my controllers do double-duty: the same actions handling json and html requests differentially. For this, it''s useful that Rails 3.2 automatic params hash conversion from json work (as described here<http://guides.rubyonrails.org/v3.2.13/action_controller_overview.html#json-xml-parameters>in the Rails docs). (I''m using ruby 1.9.2.) But it doesn''t, that is, it seems I am required to decode the json params explicitly. Why? Here''s an example of a post from my dev log... Processing by MarketlessPriceRequestsController#create as J...
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