On Wednesday, May 18, 2011 1:32:39 PM UTC-6, der_tom wrote:
hi,i;m using a easy feedback plugin which works just fine - locally.
uploading the app to staging production gives me this:
/usr/lib/ruby/gems/1.8/gems/
activerecord-2.3.5/lib/active_ record/transactions.rb:214:in
`rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_ record/transactions.rb:196:in
`save'
/home/tom/ror/fooapp.com/staging/releases/ 20110517122608/app/ controllers/feedbacks_ controller.rb:21:in
`create'
the create method is basically this:
def create
@feedback = Feedback.new(params[:feedback])
if logged_in?
@feedback.user_id = current_user.id
endif @feedback.valid?
FeedbackMailer.deliver_feedback(@feedback) if !...@feedback.email.blank?
@feedback.save
render :status => :created, :text => '<h3>Thank you for your
feedback!</h3>'
else
@error_message = "Please enter your #...@feedback.subject.to_s.downcase}"
render :action => 'new', :status => :unprocessable_entity
endend
validation is only on one field, which has a value in the params-hash.
model-validations etc are all the same - locally vs server
any ideas?
Etc.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment