Guest User

Untitled

a guest
Dec 11th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # comment line, yeah...
  2. class ThemesController < ApplicationController
  3. def update
  4. @theme = Theme.find(params[:id])
  5. if @theme.update_attributes(params[:theme])
  6. redirect_to @theme, :notice => "Successfully updated theme #{@theme.name}."
  7. else
  8. render :action => 'edit'
  9. end
  10. end
  11. end
Add Comment
Please, Sign In to add comment