@members = scope.order(:id).limit(@limit).offset(@offset).to_a
respond_to do |format|
- format.html { head 406 }
+ format.html {head 406}
format.api
end
end
def show
respond_to do |format|
- format.html { head 406 }
+ format.html {head 406}
format.api
end
end
end
respond_to do |format|
- format.html { redirect_to_settings_in_projects }
+ format.html {redirect_to_settings_in_projects}
format.js do
@members = members
@member = Member.new
end
saved = @member.save
respond_to do |format|
- format.html { redirect_to_settings_in_projects }
+ format.html {redirect_to_settings_in_projects}
format.js
format.api do
if saved
@member.destroy
end
respond_to do |format|
- format.html { redirect_to_settings_in_projects }
+ format.html {redirect_to_settings_in_projects}
format.js
format.api do
if @member.destroyed?