vendredi 5 mai 2017

redirect to an item of edit page after creating object ruby

i need to redirect to a specific item in my edit page , i used rederict to but i can't add the #tab_id this is my source code :

  if @song.save
  flash[:notice] = I18n.t('message.success')
  #render action: 'edit'
  redirect_to edit_song_path(@song.id)#tablineT_18_5

the tab_id is named : '#tablineT_18_5'

Aucun commentaire:

Enregistrer un commentaire