search for: render_without_layout

Displaying 12 results from an estimated 12 matches for "render_without_layout".

2006 Mar 17
2
Security issue dealing with comment posting - anyone?
...t anything else to work. #currently def comments content = Content.find(params[:id]) @comment = Comment.new(params[:comment]) content.comments << @comment content.save if @comment.save then @comment_count = Comment.count("content_id=#{params[:id]}") render_without_layout else render :text => "Error" end end #what i''ve tried def comments ... if @comment.save then @comment_count = Comment.count(:conditions => ["content_id=?", #{params[:id]}]) rende...
2006 Mar 17
1
How to handle errors - HELP
...; or something? Here''s my controller: def comments content = Content.find(params[:id]) @comment = Comment.new(params[:comment]) content.comments << @comment content.save @comment.save @comment_count = Comment.count("content_id=#{params[:id]}") render_without_layout end If the comment is blank, then do I want to rescue the nil, then "render :text => ''Please fill out the fields.''"? Then in my remote form options, on the :update, I could have: :update => {:success => ''the_right_div'',:failure => ...
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
...#39;' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_view/base.rb:176:in `render_file'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_controller/base.rb:369:in `render_file'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_controller/base.rb:351:in `render_without_layout'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_controller/layout.rb:145:in `render_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_controller/benchmarking.rb:22:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_cont...
2006 Apr 17
5
Strange question on file_column
...ems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:697:in `render_file'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:619:in `render_with_no_layout'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:740:in `render_without_layout'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:689:in `render_action'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:641:in `render_with_no_layout'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/acti...
2006 Sep 12
1
Ferret on Windows?
...y/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:726:in `render_file'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:648:in `render_with_no_layout'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:769:in `render_without_layout'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:718:in `render_action'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:670:in `render_with_no_layout'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action...
2006 May 06
1
Ajax commenting - PLEASE HELP!!!!
...lt;%= end_form_tag %> </div> #CONTROLLER def comments post = Post.find(params[:id]) @comment = Comment.new(params[:comment]) post.comments << @comment post.save if @comment.save then @comment_count = Comment.count("post_id=#{params[:id]}") render_without_layout else render :text => "Error saving comment" end end -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
0
Returning from Ajax call - "redirect_to error"
...ver. Here''s my controller: #controller def comments content = Content.find(params[:id]) @comment = Comment.new(params[:comment]) content.comments << @comment content.save @comment.save @comment_count = Comment.count("content_id=#{params[:id]}") render_without_layout end #remote form <%= form_remote_tag( :url => {:controller => ''inventory'', :action => ''comments'', :id => content.id}, :update => {:success => "new-comment"}, :loading => "Element.show('...
2006 Mar 18
0
Live Search problems - HELP
...;%'' + @params[''search''].downcase + ''%'', ''%'' + @params[''search''].downcase + ''%''], :order => "id desc") @mark_term = @params[''search''] render_without_layout end end This might be way off, but I''m trying to follow examples and what I *think* might work. I can''t get anything at all so far, though. Can someone please help me out??? Thanks! -- Posted via http://www.ruby-forum.com/.
2005 Aug 22
1
XML Builder question (Brain Teaser? or At A Total Loss?)
...egories.id join websites on categories.website_id = websites.id where websites.id = ? order by images.position", @params[:id]]) @options = Option.find_all render_without_layout end The line beginning with @options is just wrong. I''m attempting to correspond the options to the images, but right now it''s giving me ALL options for each image. But that''s not even the worst part. My controller is rendering an .rxml template of the same na...
2006 Jan 11
6
Output non-HTML (CSV) from Rails
Hi, I want to offer a CSV download of data in my Rails app (eg. An "Export to Excel" link to grab the current view of tabulated data). However, I can''t seem to break-out of the Rails framework to output this non-HTML data. Even if I eliminate my layout template from my view, the most basic view (no HTML) will still wrap the output in
2008 May 13
0
Problem geting web interface to work
...' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in `render_file'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:738:in `render_with_no_layout'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:863:in `render_without_layout'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:798:in `render_action'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:748:in `render_with_no_layout'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:7...
2005 Sep 21
9
Ajax.Updater
Hi all, I was wondering if one could pull a completely separate web site into a div, e.g. <a href="#" onclick="new Ajax.Updater(''artifact'', ''http://www.vivisimo.com/'', {asynchronous:true, evalScripts:true, onLoading:function(request){Toggle.display(''message2body'')}}); return false;">&raquo;</a> it fails