code_junkie

Reusing the partials multiple times on one page in Ruby on Rails

Nov 11th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <%= collection_select 'type', 'id', @types, "id", "name",
  2. {:prompt => true},
  3. {:onchange =>
  4. remote_function(
  5. :loading => "Form.Element.disable('go_button')",
  6. :url => '/sfc/criteria/services',
  7. :with => "'type_id=' + encodeURIComponent(value) + '&use_wizard=#{use_wizard}'"),
  8. :class => "hosp_select_buttons"
  9. } %>
  10.  
  11. $('type_id')
  12.  
  13. :id => "type_id_wizard_#{use_wizard}"
Add Comment
Please, Sign In to add comment