2017-05-05 60 views
0

后,我需要重定向到一个特定的项目在我的编辑页面,我用重定向,但我不能添加#tab_id 这是我的源代码:重定向到编辑页面的项目创建对象红宝石

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

的tab_id被命名为: '#tablineT_18_5'

回答