daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def create
  2.   @notice = Notice.new(params[:notice])
  3.   @user = ????????????????? # musisz to ustawic, poczytaj o acts_as_authentic
  4.   @notice.author = @user.name + ' ' + @user.surname
  5.   if @notice.save
  6.      flash[:notice] = 'Saved OK'
  7.      redirect_to "cokolwiek"
  8.   else
  9.      flash[:error] = "Problem etc."
  10.      render :action => 'new'
  11.   end
  12. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top