search for: render_component_as_str

Displaying 9 results from an estimated 9 matches for "render_component_as_str".

2006 Feb 08
1
render_component vs. render_component_as_string?
...;, :id => target_id This works fine, except that passing the id in :params didn''t work and I had to pass in an explicit :id parameter to get the target controller to override the id - is that documented anywhere? That''s not my question. My question is - if I replace this with render_component_as_string, then try to render the string, I get an error: renderstring = render_component_as_string :controller => target_controller, :action => "show", :id => target_id render :inline => renderstring throws a undefined method error for render_component_as_string. Is this method no...
2006 Aug 14
2
Undefined Method error for call to ''render_component_as_string''- Why?
...r is calling an :action in UserController) When I add this line to my ''controllers/application.rb'' file, I don''t understand why I get an ''undefined method'' error. After all, "class ApplicationController < ActionController::Base". @sbox = render_component_as_string(:controller=>''users'', :action=>:search) This problem 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_compo...
2006 Aug 14
0
undefined method ''render_component_as_string'' - why?
...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=>''users'', :action=>:search) My problem is very similar to the the one described in a post to this list 6 months ago: http://lists.rubyonrails.org/pipermail/rails/2006-February/016759.html Nobody ever explained it then. I corresponded with the February poste...
2006 Jun 30
1
using routes.rb from inside a controller / render_component_as_string / generally stumped
...def info @category = Category.find(params[:id]) end end The "tricky" line needs to use config/routes.rb to parse the url and create the params hash if a ''?'' is in the url. The info action must execute with the same session. I''m sure I could somehow use render_component_as_string; however, I don''t know how to access config/routes.rb to parse the url string to prepare the arguments for render_component_as_string. Any ideas? I''ve been struggling with this on and off for a couple months and have asked here in a variety of forms. Any help greatly apprecia...
2005 Jun 26
4
calling controller and caching from a sweeper class
...ly after the expire_cache call from the Sweeper class. However I could not find a way to do that successfully. I''ve tried several ways, including instantiating the controller in the sweeper and calling the actions directly (which doesn''t work), and the closest I got was using render_component_as_string from the base ApplicationController. That sort-of works in that it at least it calls the proper XmlController action, but it has two problems: the pages aren''t cached, and also the response type changes to xml (which confuses the browser since the response is a redirect). I wonder i...
2006 Feb 24
4
Any way to pass state to a component?
I am trying set up a rails app that utilizes components. I need to be able to pass some state (a bunch of name value pairs) from the Main controller to the component. Is there any way to pass this state info using render_component? Regards -- Posted via http://www.ruby-forum.com/.
2006 Mar 08
8
New ajaxy CMS on Rails: adminpages
hey, i''ve created a basic content management system using rails and scriptaculous. I posted a first version last week, but I heavily extended it since then. Features: Pages are arranged in a sortable tree (sortable by drag and drop) Pages have "nice" URLS (no /index?articleid=97361496 or something) Cacheing on page basis every page has a layout with a number of columns page
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I''m considering a menu sytem for a website that depends heavily on the users permissions to decide which menu options a user would need to see. I thought that components, since they have the logic in the controller and
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server