Displaying 1 result from an estimated 1 matches for "gives_controller".
Did you mean:
dives_controller
2012 Sep 22
1
formtastic does not save at all
...s and jQuery ajax functions work properly.
But the problem is the clicking the submit button does not do anything
at all!!!!
If there is an error in saving the data, it should show some kind of
message in the console.
But the button simply does nothing.
I don''t think it matters, but the gives_controller is the following.
def create
@give = current_user.gives.build(params[:give])
respond_to do |format|
if @give.save
format.html { redirect_to @give, notice: ''Give was successfully
created.'' }
format.json { render json: @give, status: :created, locat...