Displaying 20 results from an estimated 400 matches similar to: "Setting cache_classes to false results in blank pages"
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody
I''m currently reading through the Pragmatic Programmers RSpec book, and
I really enjoy it.
But I’m facing some problems because of the fact that the book is
already some years old, I guess. I have installed rvm and use Ruby
1.9.3, and I didn’t really get some Rails code examples to work
properly, so I tried it with a 1.8.7 installation, but there I had some
other problems
2014 Apr 29
0
Bootstrap 3.1.1 is showing as BS 2...
I should first mention that I'm new to rails, but I updated to Ubuntu 14
today and I cloned my latest project from Github after installation.
Everything seems to be working just as my last push, however my project is
styled with Bootstrap 2... *but it should be 3.1.1.*
I am not using the direct files in the stylesheets folder, instead I
created my own custom.css.scss and did @import
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
Hi all, tried posting this to rspec group but w/o success so hope someone on
this list might be able to help me out as am kind of stuck:
Can anyone tell me why I am getting this error trying to ''rake spec'':
''kernel.rb:27:in `should'': uninitialized constant RSpec::Expectations
(NameError)''.
Can''t seem to find a useful reference online to
2012 Jun 27
0
config.cache_classes true or false in test environment?
Hello, since two days I have problem with a scenario that started to fails
with the error that there is a missing link. I narrowed the problem to
config/environments/test.rb and config.cache_classes and I change the
value now the scenario is passing with config.cache_classes = true. Here is
my full test.rb:
RbpCm::Application.configure do
config.action_mailer.default_url_options = { :host
2007 Oct 04
0
Weird active record problem - goes away with cache_classes change
I have three active record objects, User, Question and Answer
- Questions belong to a user and has_many answers
- Answer belongs to a user
Now, when I start with an array of answers, I can do this
successfully:
for a in answers
a.user.user_id
end
If I do this:
for q in questions
answers = q.answers
for a in answers
a.user.user_id
end
end
It works the first time, but it fails the
2008 Sep 03
1
edge rails config.cache_classes = true breaks applications
when using current edge rails, i am getting trouble when using the
production environment -- i tracked down the problem to the following
line
config.cache_classes = true
if i disable the class caching, everything works just fine, when
enabling the cache_classes, lots of errors get dropped -- see the output
below:
error #1:
2007 Mar 03
0
config.cache_classes value ignored in development mode under Apache 2
I''m running latest version of RoR under Apache 2 (using a virtual
host), if I change the environment config within the virtual host
(SetEnv RAILS_ENV development) then it changes environment as
expected.
However when I''m working with views and not the model I would like
have RoR cache the model files, I have tried changing the value of
config.cache_classes to true in the
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to
because of memory leaks in 0.13.1 under linux environment.
Right now the application is running fast and steady under linux, with
no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has
become unusable under Windows (our main development environment) where
I am getting a lot of segmentation faults.
BUT the problem
2012 Jan 22
3
Using Mongoid with ActiveRecord
I''m trying to use mongodb and postgresql simultaneously with Rails
3.1. I believe I have everything set up correctly.
What I''m interested in knowing is how to get rails to flip-flop back-
and-forth between mongoid and activerecord.
For example, if I want to generate an ActiveRecord model after using
mongoid, rails automatically defaults to the Mongoid gem.
> rails g model
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
Please review this patch for postgres adapter''s referential_integrity.rb in
Rails master and 3.2.9 and let me know what you think. We are using it via
an initializer (monkey patching the adapter directly vs. in module):
https://github.com/rails/rails/pull/8498
Fixes this issue also seen by others in Foreigner:
https://github.com/matthuhiggins/foreigner/issues/61
Problem that it
2010 May 10
0
config.cache_classes = false is broken in 2.3.4 and 2.3.5
I have created a ticket with a simple description of how to reproduce.
https://rails.lighthouseapp.com/projects/8994/tickets/4565
Jarl
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
2010 Aug 11
6
rspec2 not working with shoulda
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta.
19" .
I have following code at spec/models/user_spec.rb
require ''spec_helper''
describe User do
it { should validate_presence_of(:email) }
it { should validate_presence_of(:name) }
end
Here is my gemfile
group :development, :test do
gem ''factory_girl_rails'',
2010 Sep 30
5
response.should have_text leads to undefined method `has_text?'
One of my controllers directly renders some JSON output that I would
like to test with RSpec. For that I use ''response.should
have_text("foobar")'' in my spec file, but that leads to a
Failure/Error: response.should have_text("enim")
undefined method `has_text?'' for #<ActionController::TestResponse:
0xb6736944>
I read here somewhere that webrat
2010 Sep 27
3
having some issues with factory_girl and bundler...
Hi All
Need some brilliants minds here :)
I''m using Rails 2.3.8 & ruby 1.8 (I know, I know... )
I''ve move my gems from .gems to Bundler, but I''m having some issues with
Factory_girl when I rake spec
"uninitialized constant Factory"
I''m following the instructions from http://gembundler.com/rails23.html.
Basically:
- grab all config.gem and place
2011 Jul 04
2
when use mongoid , Model.count can't work.
Hi, when i use mongoid to get the count of model named "User", I met a
error :
irb(main):001:0> User.count
ArgumentError: wrong number of arguments (1 for 0)
from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/
cursor.rb:37:in `count''
from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/
cursor.rb:37:in `send''
from
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like
rails server Could not find pg-0.12.2 in any of the sources
Run `bundle install` to install missing gems.
I dont know what to do
Thanks for all the help
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Feb 25
0
Bundle install error involving hash range errors
While running "bundle install" on a new Rails3.0.0.beta app on Ubuntu
9.10 / Ruby 1.8.7 with the following line in my Gemfile:
gem "mongoid", :git => "git://github.com/durran/mongoid.git", :branch
=> "prerelease"
I got the following error:
Installing mongoid (2.0.0.pre) from git://github.com/durran/mongoid.git
(at prerelease)
2011 Feb 03
0
Correct way to exclude attributes from json serialization
Hi
I''m using Mongoid and Rails 3, and I want to serialize one of my
mongoid documents to json for publishing via a controller, e.g.
class ReportController < ApplicationController
respond_to :json
def show
report = Report.where(:report_id => params[:id]).first
respond_with report
end
end
This works ok, but pushes out every attribute on the document
2012 Oct 10
4
How do we get the End of Line date for the gems which we are using Ruby on Rails?
Hi All,
I want to know the EOL date for the below gems for ROR. Can anyone help me
how to find the EOL dates
- authlogic
- will paginate
- oauth-plugin 0.3.14
- statistics 0.1.1
- YUI
- cucumber 0.6.4
- cucumber-rails 0.3.0
- rspec 1.3.0
- rspec-rails 1.3.2
- webrat 0.7.0
- factory-girl 1.2.4
- database_cleaner 0.5.0
- SSL requirement
- calender_select