Displaying 5 results from an estimated 5 matches for "render_to_body".
2010 Nov 04
0
Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
...der, :rhtml, :rxml], :formats=>[:html],
> :locale=>[:en, :en]} in view paths
> "/Users/DK/Documents/ror/projects/creditcompare3/app/views"
>
>
> In the Rails source I find:
>
> # Raw rendering of a template to a string. Just convert the results of
> # render_to_body into a String.
> # :api: plugin
> def render_to_string(*args, &block)
> options = _normalize_args(*args, &block)
> _normalize_options(options)
> render_to_body(options)
> end
>
> # Raw rendering of a template to a Rack-compatible bod...
2010 Jul 27
13
3.0.0rc ActionController::RoutingError No route matches
Have been developing on 3.0.0beta4 and just updated to 3.0.0.rc.
When I try to link_to() a User object that previously had worked, I
get the following:
ActionView::Template::Error (No route matches
{:action=>"destroy", :controller=>"games", :id=>#<User ..... >
Yet I have in my routes.rb file has resources :users and my "rake
routes" shows:
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...erer.rb:17:in `render''
actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:119:in `_render_template''
actionpack (4.0.0.beta1) lib/action_controller/metal/streaming.rb:219:in `_render_template''
actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:112:in `render_to_body''
actionpack (4.0.0.beta1) lib/action_controller/metal/rendering.rb:33:in `render_to_body''
actionpack (4.0.0.beta1) lib/action_controller/metal/renderers.rb:26:in `render_to_body''
actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:97:in `render''
actionp...
2012 Sep 18
4
multiple modules defining same method included into a class
...ayouts in turn includes a module called
Rendering. Since there is a Rendering module within the
AbstractController namespace, it is found, and it indeed contains a
method called render.
def render(*args, &block)
options = _normalize_render(*args, &block)
self.response_body = render_to_body(options)
end
And because render is included in Layouts, it''s included as an
instance method, and because Layouts was included in
ActionController::Base, that render method utlimately makes its way up
to the Base class. Now we have two modules
(ActionController::Rendering and AbstractC...
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me)
Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class
So I''m using...
app/assets/javascripts/people.js.coffee and put in...