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"
- else
- flash[:error] = "Problem etc."
- render :action => 'new'
- end
- end
Add Comment
Please, Sign In to add comment