Sha256: 180d6768a4a0c9252c2026400d625b25b712472555dc566274216f460b722215
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
class UsersController < ApplicationController def edit @user = User.find(params[:id]) render(inline: "<%= @user.name %>") end def update @user = User.find(params[:id]) @user.update_attributes(user_params) render(inline: "<%= @user.name %>") end private def user_params params.require(:user).permit(:name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-userstamp-3.0.1 | spec/dummy/app/controllers/users_controller.rb |
activerecord-userstamp-3.0.0 | spec/dummy/app/controllers/users_controller.rb |