a guest Mar 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def create
- @notice = Notice.new(params[:notice])
- @user = ????????????????? # musisz to ustawic, poczytaj o acts_as_authentic
- @notice.author = @user.name + ' ' + @user.surname
- if @notice.save
- flash[:notice] = 'Saved OK'
- redirect_to "cokolwiek"
- flash[:error] = "Problem etc."
- render :action => 'new'
RAW Paste Data