search for: controller_a

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

Did you mean: controller_1
2006 Mar 31
1
url_for leave out ''index'' action
...r and default to the index action. But is there a way to make it so that the ''index'' portion in the url is not shown to the user? This is mostly a concern where in other controllers i use redirect_to and link_to that index action of a particular controller. For example: i have controller_a and i want to get to its index action. I know i can just use http://www.myapp.com/controller_a but when i do link_to and redirect_to :controller => controller_a, it shows controller_a/index in the url. I''d like to leave off the ''index'' Thanks for the help. --------...
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 = r...
2006 Aug 14
2
Undefined Method error for call to ''render_component_as_string''- Why?
...oblem was also described in a post to this list 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...
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