- before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
- before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
:top, :index, :show, :play, :by_panel, :by_author
]
:top, :index, :show, :play, :by_panel, :by_author
]
- before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
- before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
'scroll_panels', 'by_scroll', @operators,
'scroll_panels', 'by_scroll', @operators,
@item = @my_model_class.edit(params[:id], @operators)
render_destroy '/home/' + @item.path_name
end
@item = @my_model_class.edit(params[:id], @operators)
render_destroy '/home/' + @item.path_name
end