Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # comment line, yeah...
- class ThemesController < ApplicationController
- def update
- @theme = Theme.find(params[:id])
- if @theme.update_attributes(params[:theme])
- redirect_to @theme, :notice => "Successfully updated theme #{@theme.name}."
- else
- render :action => 'edit'
- end
- end
- end
Add Comment
Please, Sign In to add comment