search for: subtemplate

Displaying 5 results from an estimated 5 matches for "subtemplate".

Did you mean: subtemplates
2008 Jul 17
0
render partial vs. render subtemplate?
Can anyone shed any light on the pros/cons of one vs. the other? Certainly the "render partial" option is advantageous as an abstraction of one or many objects and what to do with them. But I''m noticing that my code is starting to have lots of partials and I wonder where subtemplates fit in? Are there some best practicies for partials vs. subtemplates? Thanks! -Danimal --~--~---------~--~----~------------~-------~--~----~ 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 ruby...
2006 Feb 04
2
rendering subtemplates
hi, i''ve got main site navigation in the application.rhtml file. the links in this template correspond to the ''index'' page of various controllers. The controllers themselves each have navigation of their own, which i would like to appear in every view for a particular controller in *addition* to the main site navigation. The problem I am encountering is that
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
...line is not accepted when running rails 2.0 => ERROR ActionView::ActionViewError (Due to changes in ActionMailer, you need to provide the mailer_name along with the template name. render "user_mailer/signup" render :file => "user_mailer/signup" If you are rendering a subtemplate, you must now use controller-like partial syntax: render :partial => ''signup'' # no mailer_name necessary) in debugging mode, I got : File.join(template_root, ''mailer'') => ''my_redmine_path/app/views/mailer layout => "layout.text.html.rh...
2008 Mar 31
0
Action Mailer Problem with salted hash login generator
...t via the action mailer I get following error: ===================================== Due to changes in ActionMailer, you need to provide the mailer_name along with the template name. render "user_mailer/signup" render :file => "user_mailer/signup" If you are rendering a subtemplate, you must now use controller-like partial syntax: render :partial => ''signup'' # no mailer_name necessary =========================================== As I am new to rails, I don''t get what it really means. So plz....... help me. --~--~---------~--~----~------------~...
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All, Thanks for any help in advance. I have what I think is a very straightforward partial template and I can''t figure out why a text_field call within it doesn''t work. Here is my calling template: lists.rhtml <div id="target_lists"> <%= render(:partial => "target_lists", :collection => @target_lists) %> </div> In the partial