Displaying 1 result from an estimated 1 matches for "write_tags".
Did you mean:
write_page
2008 Jun 10
2
validates_associated doesn't work on update (and i've tried :on => :update)
...d underscores''
Ok, so here''s the stories controller create method:
def create #what you do when the new form is submitted
@story = Story.new(params[:story])
@story.user_id = current_user.id
if request.post?
begin
Story.transaction do
@story.write_tags
@story.save!
flash[:notice] = ''Story posted!''
redirect_to :action => ''index''
end
rescue ActiveRecord::RecordInvalid => e
render :action => "new"
end
...
Now, this works fine, I see the...