Displaying 7 results from an estimated 7 matches similar to: "rendering subtemplates"
2006 Mar 08
2
RJS - page object in helpers?
Hello,
I am using RJS and Edge Rails and I was wondering if the page object should
be available in helpers also.
For example if I have a helper function
def update_flash_messages
page.replace_html ''flash_messages'', (show_flash_messages :textilize => true)
page.visual_effect ''flash_messages'', :appear
end
and then in my RJS files I call
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
2006 Feb 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here.
I''ve got a link to remote that I believe should be working, but doesn''t
seem in fact to do *anything*. I''m looking at the webrick log, since
the Book says I should be seeing some hot POST action in there, but
there''s literally no change when I click on the JS link. From looking at
the source that''s
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
2006 Jan 31
11
ez_where plugin updated features.
Friends-
I wanted to let people know that there is a new experimental release
of this plugin. I would love feedback on syntax and features. There
is now a full test suite with fixtures that covers all the available
syntax. Look at the test suite for more syntax possibilities. There
have been many additions since my last release. Fabien Atelier has
been working on this with me and has
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running
fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a
major error when sending a confirmation email :
mailer.rb
class Mailer < ActionMailer::Base
....
# Renders a message with the corresponding layout
def render_message(method_name, body)
layout =
2008 Mar 31
0
Action Mailer Problem with salted hash login generator
Hi! Guys
I am using the salted hash login generator for login purpose. Now, I
am working in friendship. When I want to request someone for
friendship request 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