Pale Horse wrote: > Stephan Wehner wrote: >> Pale Horse wrote: > > Nothing short of what should be there, nothing more: > > def new > @article = Article.new > end > > def create > @article = Article.new(params[:article]) > if @article.save > flash[:notice] = "Successfully created article." > redirect_to admin_articles_path > else > render :action => 'new' > end > end > > def edit > @article = Article.find(params[:id]) > end > > def update > @article = Article.find(params[:id]) > if @article.update_attributes(params[:article])
I think you need to add something like, @article.tag_list << params[:tags] @article.save (Not the right way, but it should then save; sorry a bit late for me over here) Stephan > flash[:notice] = "Successfully updated article." > redirect_to admin_articles_path > else > render :action => 'edit' > end > end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

