[Rails] AssetNotPrecompiledError for missing assets - really?

2012-01-29 Thread Pascal Friederich
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

[Rails] Re: Passing Object in params, and parse.

2011-02-08 Thread Pascal Friederich
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

[Rails] Re: How to deal with this code ?

2009-09-09 Thread Pascal Friederich
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

[Rails] Re: "Missing these required gems: rspec-rails" in ruby 1.9

2009-09-01 Thread Pascal Friederich
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

[Rails] Re: "Missing these required gems: rspec-rails" in ruby 1.9

2009-09-01 Thread Pascal Friederich
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