I migrated one of my projects to from Rails 3.0 to 3.2.1 which means
I'm using the asset pipeline for the first time.
As much as I like the ease of compressing and minifying my assets the
more I'm annoyed about its behavior to raise an
AssetNotPrecompiledError as soon as, well, there's an asset tha
what you see in the params is not the Check object but it's string
representation.
There is no sane way to get the actual object out of this. I guess
what you want is
to pass the id of the check object and not the object itself.
<%= hidden_field_tag "checks", @c.id %>
and in the controller
def c
On Sep 9, 3:33 am, fireflyman wrote:
> So,Could you help me deal with my code ?
David already gave you the answer, you are trying to add a
has_many :through associated record to an unsaved record. The error
message is pretty much telling you that "Cannot associate
new records through 'Book#autho
when you are
actually running specs, and you usually require 'spec/rails' in your
spec_helper.rb anyway, you can use :lib => false so rails doesn't
require the rspec libs at all.
On 1 Sep., 18:11, Oren Golan wrote:
> thank you, it works!
> what is the reason for this error
change the config.gem lines for rspec/rspec-rails in your test.rb
to:
config.gem "rspec", :lib => false
config.gem "rspec-rails", :lib => false
that should solve your problem
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
5 matches
Mail list logo