-
That's my picture.rb model.
``` ruby
class Picture < ActiveRecord::Base
belongs_to :picturable, polymorphic: true
has_attached_file :photo, #, :storage => :dropbox,
:styles => { :thumb => ["100x…
-
While updating a rails 4.2.1 project from rspec 3.2.0 to 3.3.0 I got a lot of failing specs.
I noticed that the issue can be reproduced simply by the following (pointless spec):
``` ruby
it "will fa…
tisba updated
9 years ago
-
After creating an order manually in 2.4 stable, it fails when updating the address.
#### Error message
```
NameError: uninitialized constant Spree::Adjustment::Adjustable
```
#### Action
```
spree/a…
-
One test at `4-2-stable` branch always get failure when ruby 2.2.1 is used.
``` ruby
$ cd activerecord
$ ruby -Itest test/cases/attribute_methods_test.rb
Using sqlite3
Run options: --seed 53001
# Ru…
-
Any ideas?
```
DOTs-MacBook-Pro:sims moboyle$ rails s
/Users/moboyle/.rvm/gems/ruby-2.2.2/gems/rgeo-0.3.20/lib/rgeo/coord_sys/proj4_c_impl.bundle: [BUG] Segmentation fault at 0x00000000000440
ruby 2.…
-
The daily cron job is giving an error that appears to be related to the database:
```
$ RAILS_ENV=production bundle exec rake cron:daily
rake aborted!
ActiveRecord::SubclassNotFound: The single-table…
lsh-0 updated
9 years ago
-
I'm getting an error when calling update_attributes for an api I'm writing. It's working from the console, but it's not working through the api controller.
```
NoMethodError:
undefined method …
-
It's possible to add a warning when you make a rails generate model Model type:string because "type" is a keyword ? So we can't access to the value with the commande Model.type
Thanks
Florian
-
In 4.1.9, a query on a polymorphic relationship like this would just return nil:
```
2.2.1 :001 > Spree::Adjustment.where(adjustable: nil).tax.first
Spree::Adjustment Load (3.9ms) SELECT "spree_a…
-
The following is probably due to me not knowing Rails and not doing something obvious, but if I create a new blank Rails project with only Blaze as per readme, Blaze ostensibly works, but after I save…