-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When I do
rspec spec
in my rails project, I get
No examples were matched. Perhaps {:if=>#<Proc:0x0000010126e998@/Users/samliu/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rspec-core-2.3.1/lib/rspec/core/configuration.rb:50 (lambda)>, :unless=>#<Proc:0x0000010126e970@/Users/samliu/.rvm/gems/ruby-1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
when i am trying to get the basic devise examples running with current git versions from rails, mongomapper and devise, i have the following error appearing:
undefined method `to_key' for #<Admin:0x23dee04>
here is my actual source:
4: = form_for @admin, :url => admins_path do |f|
5:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
is there a full setup guide for mongo_mapper, haml, rails3 and devise, for the current git (master) branches? a lot of things changed in all of those frameworks/libs lately. i was wondering if somebody has it up and running and can share it on github or give some pointers...
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been fighting left and right with rails 3 and bundler. There are a few gems out there that don't work properly if the rails application hasn't been loaded yet. factory_girl and shoulda are both examples, even on the rails3 branch.
Taking shoulda as an example, when trying to run rake test:units…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Guys,
Here my issuse:
I've got two models:
class User < ActiveRecord::Base
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :username
has_many :tasks
end
class Task < ActiveRecord::Base
belongs_to :user
end
with this simple routes.rb file
TestProj::Application…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am running:
ruby 1.9.3p392 (2013-02-22) [i386-mingw32]
compass-rails 1.0.3
I used the Windows RailsInstaller to install Ruby on Rails
Gemfile
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'compass-rails','~> 1.0.2'
# See https://github.com/sstephenson/execjs#readme…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When I run:
sass --watch style.scss:style.css
gives me
invalid option: --watch
why?
this is good:
sass -v
gives me:
Haml/Sass 2.2.24 (Powerful Penny)
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Instead of serving my Sass files from the default 'views' directory I'd like to change this to /assets/sass
The following attempts are in my main ruby root file in the app:
Attempt 1
set :sass, Proc.new { File.join(root, "assets/sass") }
get '/stylesheet.css' do
sass :core
end
With this…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been trying to install Sass on Gentoo, but it hasn't been going too well. Unfortunately, the latest version of Sass in portage is 3.1.21.
What I want to use Sass for requires at least Sass 3.2, which is available through rubygems.
What I've tried:
emerge dev-ruby/sass (installs an old version)
gem…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using Padrino and when I try to specify my application.sass file I get this error NameError at / uninitialized constant Sass::SyntaxError
I thought I might have something missing, so I checked out the sample_blog application at their GIT to verify my SASS is working correct. It was working correct…
>>> More