Class SendArticleController
In: app/controllers/my_profile/send_article_controller.rb
Parent: MyProfileController

Methods

new  

Public Instance methods

[Source]

    # File app/controllers/my_profile/send_article_controller.rb, line 3
 3:   def new
 4:     @person = Person.find(params[:target_id])
 5:     @article = TextileArticle.new
 6:     if request.post? && params[:confirmation]
 7:       SendArticle.create!(:requestor_id => user.id, :target_id => @person.id)
 8:       flash[:notice] = _('%s receberá solicitação de criação deste artigo.') % @person.name
 9:       redirect_to :back
10:     end
11:   end

[Validate]