search for: render_

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

Did you mean: renders
2006 Feb 01
1
Unwanted sessions after routing error
...After reading <http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionOptions>, I tried this as a workaround in environment.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:disabled => true) That didn''t help. It appears that this problem occurs after the render_* methods, while ActionController is building the response, so I''m not sure how to workaround it. FYI, I found this problem because of a bad image URL that someone had entered into a database. I don''t want to solve this problem by doing URL validation :-) Any help or suggesti...
2006 Jan 19
1
Rationale behind render opposed to render_action
Guys, What was the rationale behind moving to the swiss army-ish method of render(:X), as opposed to the various render_X methods that existed before? I find it easier to keep the render_X style in my brain, rather than trying to remember what the valid parameters to render() are. It''s also more code completion friendly. Just curious. Thanks, John -- Posted via http://www.ruby-forum.com/.
2006 Jun 21
14
[Bounty] 1 pizza for 1 simple plugin
...thing in every file you want it to appear around isn''t acceptable since you may as well put that tags in yourself if you''re going to do that. Clarification: Just to be clear this would result in a page that was littered with these comments around the layout, and essentially every render_* tag. If you had a render in a loop it would end up with these comments around every one. -- - kate = masukomi
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
...ing and proposed method before this gets shot down as anti-MVC. Let''s say I am writing a contact-management application. I have a class Contact. I will need to display this class all over the application. My first choice is to use a partial. Now I can render my Contact with: <% render_partial ''contact_view'', :contact => my_contact %> However, I start doing some ajax things, where I need to render a contact and return it with an AJAX call. So, I simply render the partial from my controller. Not too bad, as long as I can keep straight what partial to...