search for: update_view

Displaying 2 results from an estimated 2 matches for "update_view".

2008 Jul 17
2
Problem with link_to_remote, RJS and jRails
...sing link_to_remote and RJS template. Everything works fine if I use the default Prototype/Scriptaculous libraries, but I want to use jRails ''coz other parts of my application use a lot of jQuery. Here are the steps I done: 1. inside StatesController.rb I defined the following action: def update_view # do nothing just render the default template, in my case a RJS template end 2. here''s the whole update_view.rjs file: page.insert_html :bottom, ''result_view'', "Hello, World!<br/>" 3. inside show.html.haml (I really don''t like erb): = link_to_...
2006 Mar 29
4
using onchange options in forms
Hello, I''m trying to get a select field to update a view via the ''onchange'' option. I''ve seen examples of it here in the forum where people hardcode the forms and use javascript to trigger the change (and nearly all have complained that it''s a hack) and I''m wondering if anyone has a more elegant solution using the embedded ruby methods?