Hi Sergio,
聽
The AS create actions was using create_respond_to_js so the redirect to an HTML page failed..
聽
So I added to the controller:聽 conf.create.link.page = true
聽
Then the redirect to an HTML page works.
聽
Thanks!
聽
Dennis
Hi again..
聽
One note..
聽
You can redirect to index action with the id of the created record with
tdns_path(id: @record), or tdns_path(id: tdn.id) if you are using the
overrided create action you posted here. It would use a url like /tdns?id=xxx.
Also, you could add a route to index action with id, so the url would be /
tdns/xxx/list
get '/:controller/:id/list', :action => :index (list_tdn_path is already available so no need to add this route)
Redirect after create or revise to list_tdn_path is a super nice workflow for users, and is better than the search idea because
聽
聽
Thanks again for your help!
聽
Dennis
Good to know.. but my users would probably struggle with anything other than a left click..聽 馃槉