Converted the Membership rate form to an Ajax remote form.
* Changed the form_for to be a remote_form_for * Changed the url to use the js format * Added RJS to add the Saved rate to the rate cell * Added id to the table cell so the rate cell can be replaced on success * Added an Error RJS to flash an error message #1921
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
content = render_flash_messages
|
||||
page.select("div.flash").each do |value, index|
|
||||
page.hide value
|
||||
end
|
||||
page.insert_html :top, 'content', content
|
||||
Reference in New Issue
Block a user