similar to: use helper methods in controller? (sanitize)

Displaying 20 results from an estimated 1000 matches similar to: "use helper methods in controller? (sanitize)"

2006 Jan 17
2
New RoR app: RTRails 0.1. Uses HTTP push and a window system
hi all, anybody care to see my new rails app? It is the second version of Realtime on Rails. Link: http://ccml01.medien.uni-weimar.de/ Two screenshots: http://www.uni-weimar.de/~scheffl2/amsterdam/screenshot_rtrails_1.jpg http://www.uni-weimar.de/~scheffl2/amsterdam/screenshot_rtrails_2.jpg Here''s the project description: A RoR app using Ajax HTTP streaming to update browsers from
2005 Nov 13
1
New class: DHTML window
Hi list, i spent the last two days building a window class. Windows can be dragged, resized, minimized and closed. The windows are table-less, which makes rendering faster. Also divs with overflow:auto don''t seem to like dragging. The class is losely based on the resizable class by Michael Daines, which was posted here some weeks ago. BTW i spent three times more time on CSS tweaking
2006 Feb 06
5
RTRails now open sourced
Hi, if anyone is interested in HTTP streaming and realtime communication: Our RTRails project is now finished. I uploaded RTRails to Rubyforge. Here is the project page: http://rubyforge.org/projects/rtrails/ Here is a video showing two browsers using the app, Safari in Pull mode, Firefox in push mode: http://www.uni-weimar.de/~scheffl2/amsterdam/video.php Here is a technical paper about
2006 Mar 12
2
new version of RTWindows, a scriptaculous window system
Hey, I uploaded the (probably) final version of RTWindows. It is far from perfect, but it does enough for me. Main problem is slowness, but that seems to be a general problem of draggables. Take a look at http://www.uni-weimar.de/~scheffl2/amsterdam/rtwindows_0.5/rtwindows.php -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
7
AdminPages Rails CMS is now an engine
Hi all, I just released the new version of my CMS AdminPages as a Rails engine. It uses the Dojo Toolkit for UI elements. Features: Manipulate pages and content with Drag n Drop, Pages in a sortable tree, easy to define new page elements, "Nice" URLs, Page Caching, Rich Text Editor, multiple columns per page, custom content types, Layout scaffolding BSD license
2005 Dec 12
7
possible opera+prototype bug in evalscripts?
Hi all, I use the ajax updater with evalscripts=true. When I load HTML with included <script> tags, I get this error in Opera 8.51: ------------------- snip ----------------------------- http://ccml.uni-weimar.de/ Timeout thread: delay 10 ms Error: name: EvalError message: Statement on line 258: Illegal use of eval Backtrace: Line 258 of linked script
2002 Jul 05
1
radiomatic
Streaming and On-Air Performance for everyone. 2.7.2002 - 6.7.2002, daily 8:00pm - 0:00am Weimar, Germany, On Air: 106,6 Mhz http://www.radiostudio.org/streaps contact: streaps@radiostudio.org Everybody is welcome to connect with our new online mixing tool STREAPS <p>RadioMatic is a on-line coop-system initiated by Jerome Joy and Ralf Homann between two art schools: Villa Arson in Nice
2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
I want to clean my code by moving the duplicated lines : partial = render_to_string( :partial => "#{file}", :formats => [:html] ) to the pagination_partials function. ================================================= WORKING CODE: ================================================= def render_format_search_partial(file, options={}) # TODO remove this line to use the one
2010 Nov 04
0
Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
Just for collective knowledge as I have found no info on this problem online: I solved this by adding an .html.erb file for the "missing template", since by design or bug Rails3 will not find or render another controllers view (in my experience). Then in the new html.erb file, I just put <%= render "comparisons/display" %> because the views *are* able to find templates
2008 Feb 19
3
render_to_string in a controller test?
Hi all, I know that in general, view and controller tests should be isolated, such that controller specs don''t test views etc. However, I think I''ve run into a situation that might be an exception. My controller uses render_to_string to produce a chunk of HTML that it passes to a model to be processed. The controller then redirects the user to a different page. The
2006 Jul 11
1
Aggregate Controllers
Hi, I''m developing a dashboard like page and basically want to combine the result of multiple actions on a page. I''ve done this so far: def index r1 = render_to_string :action => "action1" r2 = render_to_string :action => "action2" render :text => r1+r2 end This works, but now I want to render from other controllers and this is where
2006 Mar 08
0
render_to_string() in a controller that isn''t default route?
Is it possible to call render_to_string() in a controller that is not set as the default route? The content controller is set in routes.rb: map.connect '''', :controller => "content". The content controller is calling a template controller, and I would like to be able to call render_to_string() within the template controller, however I receive the error:
2009 Jun 23
0
render_to_string inside method shared across several controllers
I use render_to_string to generate short reports (in HTML) under certain conditions when users access my application. The reports are stored in the database and uses database information at the time they are generated (and can thus not be generated later, e.g; when you want to consult them). The reports are generated the same way regardless of which controller has been accessed. Conditions for
2007 Nov 30
5
render_to_string in an after filter
I''m using render_to_string in an after_filter, which renders a partial that is sent to a web service. Here''s the code: class MyController < ApplicationController after_filter :post_to_webservice def show # show logic end def post_to_webservice stuff = render_to_string :partial => ''stuff'' webservice_post(stuff) end I get a DoubleRenderError in the
2006 Mar 12
0
Unexpected attribute modification
Hi all, I''m trying to do multiple render_to_string() calls in a method call, and I''m getting attributes being modified in unexpected ways. @left_sidebar = render_to_string( :partial ..... ) puts @left_sidebar.id (-> 123456) @right_sidebar = render_to_string( :partial .....) puts @left_sidebar.id (-> 234567 WTF!?!?!) puts @right_sidebar.id (-> 345678)
2007 Jul 21
0
Support my bachelor thesis: Efficient Web Dev with RoR
Hi all, my name is Stefan Kuehrer and I''m a student at the University of Applied Sciences Technikum in Vienna, Austria. Currently I''m writing my bachelor thesis which is about efficient web development by using Ruby On Rails. In order to be able to present any result I would need to ask you for your help: 1. The easy one: take part at my online survey
2002 Jul 06
1
radiomatic featuring a reading
Streaming and On-Air Performance for everyone. LAST DAY WITH A LIVE READING FROM WEIMAR, GERMANY 2.7.2002 - 6.7.2002, daily 8:00pm - 0:00am Weimar, Germany, On Air: 106,6 Mhz http://www.radiostudio.org/streaps contact: streaps@radiostudio.org Everybody is welcome to connect with our new online mixing tool STREAPS <p><p><p>--- >8 ---- List archives:
2006 Apr 20
0
Using render_to_string in other custom classes
I have a project where I''m publishing files. Once when the user clicks publish via a URL and one when an email is received that tells the app they want to publish again. Because the publishing requires templates I have them in there own views. The problem is when I want to publish via email I don''t want to ask the controller to render the views. This is what I tried to
2012 Mar 31
0
Missing Template Error on render_to_string - Rails 3.2.2
Hi, I''m trying to execute some javascript in the browser after completing my create action in the controller. Here''s how I''m doing it: In my controller: def create # exectue some code js = render_to_string(:layout => false, :template => "planned_meals/meal.js.coffee.erb") render :js => js end Two questions: 1) Am I going about it the
2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or