Displaying 4 results from an estimated 4 matches for "render_inlin".
Did you mean:
render_inline
2008 Jan 03
1
render :update do |page|
I was wondering if anyone knew how to do the rails equivalent of
render :update do |page|
It looked like maybe render_inline would do. If that''s it - does anyone
have an example?
Has anyone ported the scriptaculous helpers to a merb plugin yet?
Also - is there anyway to search the mailing list archives?
Sorry for the newb questions. Looks like a great framework though!
-ben
-------------- next part ------...
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
...h_value do |handler_class|
if handler_class::template_exists?( render_options )
return handler_class.new( render_options, local_assigns )
end
end
raise ''no handler is able to render the file!''
end
Inline rendering would be processed this way (from ActionView::Base):
def render_inline( render_options={} )
handler = @@template_handlers[ render_options[:type] ]
return handler.render( render_options )
end
5. layout.rb would pass the ''content_for_layout'' variable to
local_assigns of the render method (no special injecting into template).
6. rescue.rb shouldn...
2006 Jul 23
4
Newbie question about .rhtml
Hi everyone, coming from PHP something in the .rhtml files has been
confusing the heck out of me.
Why does this work?
<% for header in @all_headers %>
<%= header.subject %>
<% end %>
and both of these don''t work
<% for header in @all_headers
puts header.subject
end %>
---------------------------------------
<%= for header in @all_headers
puts
2006 Feb 20
5
find(:all) vs find_all
I started with Ruby on Rails in the 0.13.x period, so I''m sure I
missed out on a lot of history. There''s probably some good
explanation for something I''ve been wondering about, but I haven''t
seen it written down anywhere. Maybe someone can clue me in.
I''ve always felt that one of the uglier APIs was the
ActiveRecord::find() method. I call