search for: use_full_path

Displaying 8 results from an estimated 8 matches for "use_full_path".

2006 Jan 16
2
render :file question
Hi, I have a layout xyz.rhtml. And a footer.rhtml. Both these files reside in app/views/layouts/. In that layout, I am making a call like this: <%= render :file => "footer", :use_full_path => true%> I have also tried: <%= render :file => "footer"%> footer.rhtml is in the same directory as in xyz.rhtml. I get this exception: Showing /app/views/layouts/xyz.rhtml/ where line *#20* raised: |No rhtml, rxml, or delegate template found for footer|...
2006 Mar 20
0
Is this a Bug?
rails version 1.0 the same code render :file=>?/spec/comment_list? work will in a .rhtml file while i put it in controller ,it will produce nothing to client browser. it must use options[:use_full_path] to work fine in controller code. after read some rails source code ,i think the reason is below: file action_controller/base.rb line 602 if file = options[:file] render_file(file, options[:status], options[:use_full_path], options[:locals] || {}) while action_view/base.rb has these cod...
2006 Jul 03
2
rjs renders string or partial but not template or action
...and "_new_title.rhtml" These work page.replace_html ''title'', ''new title'' page.replace_html ''title'', :partial => ''new_title'' page.replace_html ''title'', {:file=>"front/new_title", :use_full_path=>true} but these don''t page.replace_html ''title'', :template => ''front/new_title'' page.replace_html ''title'', :action => ''new_title'' page.replace_html ''title'', :controller => :front, :a...
2006 Jan 12
3
url_for in tests
Hi there, I''ve added an extra bunch of testing features for doing in-browser testing with Selenium, and am having quite a time figuring out how to use url_for with having a controller object present. I''ve tried using ActionController::Base.url_for and ActionView::Helpers::UrlHelper.url_for but haven''t been able to get something that works. What I want to be able
2005 Dec 19
1
Preserving fallback with RJS
...template_path): ''rxml'' elsif javascript_template_exists?(template_path): ''rjs'' else raise ActionViewError, "No rhtml, rxml, rjs or delegate template found for #{template_path}" end end def render_file(template_path, use_full_path = true, local_assigns = {}) @first_render = template_path if @first_render.nil? if use_full_path template_extension = pick_template_extension(template_path) template_file_name = full_template_path(template_path, template_extension) else template_file_...
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...;'t have any "index_en.rhtml"). The source of this mismatch is that GetText overrides ActionView::Base.render_file, testing each possible localized template path and passes the first existing path to the original render_file method : return render_file_without_locale(localized_path, use_full_path, local_assigns) if file_exists? localized_path This line always evaluates to true in RSpec context, but to false in the application. After a lot of digging I found out that RspecOnRails overrides file_exists? with a stub when integrate_views is not set (lib/spec/rails/dsl/behaviour/controller.rb...
2006 May 18
3
Render layout on the fly
Hi guys, i was wondering if there is any possibility to render a layout on the fly instead of putting it into the layouts/ folder. Any ideas? -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
10
[Announcement] Google: Evil or Not?
"Google: Evil or Not?" is my first Rails webapp and I''ve just made it public at http://evilornot.info Do you still believe the ?Do no evil? Google mantra? Do you think Google Book Search, the AOL deal, and Larry and Sergey?s 767 point to Google losing it?s pristine morality and turning over to the dark side? Now you can discover what the world thinks and contribute your