search for: controller_b

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

Did you mean: controller_1
2008 Jul 10
7
Showing another controllers action
If I am in controller A and I want to show the index of controller B, how would I do that? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2006 Aug 14
0
undefined method ''render_component_as_string'' - why?
I want to put a ''search_box'' text_field in the header of each page. The search_box is implemented in a controller named ''users''. (so Controller_A is calling a component in Controller_B) When I add this line to my ''controllers/application.rb'' file, I don''t understand why I get and ''undefined method'' error. After all, "class ApplicationController < ActionController::Base". @sbox = render_component_as_string(:controller=&...
2006 Aug 14
2
Undefined Method error for call to ''render_component_as_string''- Why?
...t 6 months ago: http://lists.rubyonrails.org/pipermail/rails/2006-February/016759.html Nobody replied. I corresponded with the February poster, who points out that render_component_as_string() is ''protected'', and suggests that is why Controller_A can''t call an Action in Controller_B. But some folks on the Site5 forums, as well as the book authors (Dave Thomas, Chad Fowler) claim to make cross-controller calls. And if cross-controller invocations simply didn''t work, the whole point of Components would be greatly diminished. I also read this nice ''components&...
2005 Dec 15
3
Another session question
I want to give a user a form to create a new Product, but instead of persisting the product to the database I want to store it in a session first for category assignment, etc.. (in other controllers) So when the user describes the product on the form I have a "Save and Continue" button pointing to the action add_to_product_factory: def new_product @product = get_product end