Created
September 4, 2011 11:25
-
-
Save solars/1192699 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag(add_category_service_path(@service), :method => 'post', :remote => true) do %> | |
<%= select_tag 'service-category', options_for_select(['test'] %> | |
<%= submit_tag "Submit", :id => 'submit' %> | |
<% end %> | |
# controller | |
def add_category | |
respond_to do |format| | |
format.js { | |
render :text => 'fu' | |
} | |
end | |
end | |
# route | |
add_category_service POST /services/:id/add_category(.:format) {:action=>"add_category", :controller=>"services"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment