You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your gem in my project, the problem is that upon entering data into the database, it does not look for respond_for block and redirect my page to show method.
The controller code I am working with is:
make_resourceful do
actions :all
response_for :create do |format|
format.html {
set_default_flash :notice, I18n.t('make_resourceful.create.success', :default => "Create successful!")
redirect_to admin_apps_path
}
end
end
def index
render template: 'admin/shared/index'
end
def show
end
def new
@current_object = current_model.new()
render template: 'admin/shared/new'
end
def create
@current_object = Wine.new(apps_params)
save_succeeded! if @current_object.save
end
Hi,
I am using your gem in my project, the problem is that upon entering data into the database, it does not look for respond_for block and redirect my page to show method.
The controller code I am working with is:
It does not enter into the:
Could you please see.
The reference to question is: http://stackoverflow.com/questions/39238691/unable-to-redirect-to-index-path-after-create
Thanks
The text was updated successfully, but these errors were encountered: