Rails on Rails (Rails 4) - Template is missing
Try with this
def create
@response = Response.new(response_params)
respond_to do |format|
if @result = @response.save
format.html
format.js { render 'create.js.erb' }
else
format.html { render :action => "new" }
format.js
end
end
end
Comments
Post a Comment