Displaying 2 results from an estimated 2 matches for "customers_path".
Did you mean:
customer_path
2007 Oct 22
1
View spec response has no content?
...g(''link'', :attributes => {:rel => ''stylesheet'', :href => ''/stylesheets/backoffice.css''})
end
it ''should display menu options'' do
response.should have_tag(''a'', :attributes => {:href => customers_path, :text => ''Customers''})
response.should have_tag(''a'', :attributes => {:href => products_path, :text => ''Products''})
response.should have_tag(''a'', :attributes => {:href => reservations_path, :text =>...
2007 Aug 20
0
FormBuilder in rjs
I have a page, which renders a partial that contains a ''State'' drop
down list. Upon change, it re-renders the ''City'' drop down, re-
populating it based on selected state_id:
Page: /customer/new.rhtml
<% form_for :customer, :url => customers_path do |f| %>
State: <%= f.collection_select :state_id, State.find(:all), ''id'',
''description'' %>
<%= observe_field :customer_state_id, :url => search_cities_url, :with
=> ''search[state_id]'' %>
<.div id=''state_div...