hi you may overwrite create in your controller e.g.
def create do_create redirect_to <<dest_path>> end but maybe there is a better way to do it ahmed On 3 Dez., 11:39, johnnybutler7 <[email protected]> wrote: > Hi, > > Is there an esay way to redirect to another controller after creating > a record. Obvously once the record is saved the javascript is called > to close the form down and render the list again. > > What i want is to completly redirect to a new url, so something like: > > def after_create_save(record) > redirect_to main_url > end > > I get a cannot double render or redirect error......... > > I know i need to overwrite something but not sure where is best, > > JB -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
