Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #########################
- # Prior one with problem
- #########################
- <%= select 'country', 'state',
- @states.blank? ? [['-- Empty --', '-1']] : @states,
- {}, :size => 1, :class => 'bodytext',
- :onChange => remote_function(:update => 'state_summary',
- :url => { :controller => 'states',
- :action => 'teaser' },
- :with => 'this') %>
- #################
- # Correct one
- #################
- <%= select 'country', 'state',
- @states.blank? ? [['-- Empty --', '-1']] : @states,
- {}, :size => 1, :class => 'bodytext',
- :onChange => remote_function(:update => 'state_summary',
- :url => { :controller => 'states',
- :action => 'teaser' },
- :with => "'id='+$F('country_state')") %>
Add Comment
Please, Sign In to add comment