Method: Ems::ArticlesController#new
- Defined in:
- app/controllers/ems/articles_controller.rb
#new ⇒ Object
GET /articles/new GET /articles/new.json
29 30 31 32 33 34 35 36 37 38 |
# File 'app/controllers/ems/articles_controller.rb', line 29 def new @article = Article.new(:category => Category.find(params[:category_id])) @article.assets.build @article.category = Category.find params[:category_id] respond_to do |format| format.html # new.html.erb format.json { render json: @article } end end |