Displaying 20 results from an estimated 1000 matches similar to: "uninitialized constant Sass::Script::Functions::EvaluationContext"
2011 Jun 16
0
Rails 3.1, SASS, @import, and directories
So, here''s the problem: @import isn''t liking other directories.
Example:
app/
assets/
stylesheets/
extras/
_mixins.sass
_variables.sass
photographs/
index.css.sass
And the contents of app/assets/stylesheets/photographs/index.css.sass is:
@import "../extras/mixins", "../extras/variables"
I get the following
2011 May 06
2
Rails 3.1(beta1) + SASS + variables
Hello all,
in Rails 3.1, is it possible to define global SASS variables (and mixins)
that are shared across all *.css.scss files?
I am able to define SASS variables, yet they seemed to be scoped only within
each individual file …
On a side note -- is there a way to pass variables from my Rails app to the
SASS + JS (or CoffeeScript) files?
Thanks for your help.
Best,
Tomas
--
You received
2008 May 26
5
Noob SASS error (permission denied)
I just created the sass directory in my stylesheets directory and
when
I reload my page I get this error:
Status: 500 Internal Server Error
Permission denied - /Users/Justin/kicksite/trunk/public/
stylesheets/
application.css
/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb:
72:in `initialize''
/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb:
72:in
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
2009 Aug 27
0
HAML/SASS Auto Updater for $2
The recession has hit my family hard, so I''ve decided to sell an
application that I use quite often when designing websites.
Screenshot: http://img195.imageshack.us/img195/5440/screenshotisl.png
With this application, you may add haml/sass files and when they are
changed, they automatically transform into html/css. This is great for
making templates or creating webpages outside of
2010 Mar 28
0
Keeping it DRY. Same constant needed in js, sass, and rails
I need a constant, X, to be known in a
jQuery script
In an .rb file in Rails
ins some css/SASS
How can I get this constant known in all three places?
--
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 group, send email to
2009 Sep 27
4
Haml & Sass
I would like to use Haml for pages (and possibly templates) and Sass
for CSS. But I am a webgen newbie and can''t figure out the
configuration. Is such a configuration possible? Could someone help me
set it up?
2013 Jan 23
2
Problem with Bootstrap-SASS
I''ve installed bootstrap-sass, and added an @import line in my css. Rails
won''t find or serve up the bootstrap files. One error msg on the Mozilla
console says:
The stylesheet http://localhost:3000/assets/bootstrap was not loaded
because its MIME type, "application/javascript", is not "text/css".
Hmm. If I change the @import to say
2008 Mar 13
1
memcache_client fails Marshal.load of AR objects
wondering if anyone watching can make sense of this,
I''m try to work the memcache_client into my app, but every time it tries
to read from memcache I get a Marshall error that the AR classes are not
defined. But it''s more vexing than that, as the error does not occur
within the console. From a console everything works as expected, but
when running in the app it fails.
2009 Oct 05
4
Friendly_id and Rake problem.
Hello there,
The plugin friendly_id (http://github.com/norman/friendly_id) has rake
tasks that you can call.
I''m using this plugin as a gem.
I''m trying this: rake friendly_id:make_slugs MODEL=Post
and it is rising this error: Don''t know how to build task
''friendly_id:make_slugs''
So the question is: how do I call a gem''s rake task?
David
2010 Mar 09
1
Ruby 1.9 and Searchlogic problem
Hello,
After updating our Rails app to ruby 1.9 there are some problems with
searchlogic, here you can find the error :
Error : wrong number of arguments (1 for 0)
Full trace ( passenger ) :
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
`call''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
I am unable to call a polymorphic scope using the searchlogic plugin
as it keeps on returning ''undefined method''. I am certain it is only a
problem within my project as I created a test project and I was able
to call a polymorphic scope using the searchlogic plugin.
I am hoping someone can provide a suggestion on how to debug this
issue.
My project consists of several gems, and
2009 Feb 19
0
friendly_id / acts_as_referenced conflict?
Hi,
I''m using acts_as_referenced to generate unique references:
# property.rb
class Property < ActiveRecord::Base
acts_as_referenced :referenced_column => "permalink"
end
I would now like to use friendly_id to create seo friendly URLs instead
of using the id.
I now have:
# property.rb
class Property < ActiveRecord::Base
acts_as_referenced :referenced_column =>
2010 May 16
3
searchlogic
Hey
The guys at the searchlogic google groups seem to be asleep -.-
They didnt'' grant me permission to post yet.
But anyways, right now, I followed the searchlogic tutorial found here
-http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-
and-searching-with-searchlogic/
however, in that tutorial, the results of the find displays all my
items, before i even search for
2011 May 04
1
is not allowed as an instance variable name error
Hey all,
I get error like this:
ActionView::TemplateError
(`@content_for_details_view_builder__-626960428'' is not allowed as an
instance variable name) in app/views/shared/_details_view.haml:
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:75:in
`fields_for''
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:64:in
`form_for''
2011 Feb 21
1
Multiple custom CSS for Formtastic
Inside stylesheets I have formtastic.css and formtastic_changes.css.
In formtastic_changes.css I have a custom with:
form.formtastic { width: 700px; etc..
It is working ok but now in only one page only, need a narrower form,
say 530. So I need to have two width set up.
What is the best way to do this? I mean I do not want to change the
other forms in the project, I just want to change the
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
I am having problem starting my app, here''s the error message, i am
running Ubuntu 9.04 with Apache with Passenger:
The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message can be found below. To
solve this problem, please follow any instructions in the error
message.
Error message:
Missing these required gems:
2010 Mar 06
1
searchlogic is_any needs to be switched to equals_any
Does "is_any" has a bug in searchlogic? "is_any" used to work fine
for me. All of a sudden now, for unknown reasons, when I write for
example :attribute_is_any => [1] , the sql output is "where
attribute != 1" which is the opposite of what I want of course.
Curiously, the problem only occurs when running with a web server
(mongrel). I see the problem in the
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3.
My Rails2 app uses searchlogic heavily.
After googling i''ve come to know that searchlogic is not compatible
with Rails3 and need to use meta_search instead.
But i havent quite understood the usage of meta_search vis-a-vis
searchlogic.
If i have a User model with :name and :address fields, i am not able
to use the following
2008 Jan 31
3
Using facebooker AND Haml/Sass
For anyone using both and encountering trouble with stylesheets
(specifically, the paths being incorrect in production mode)...
Removing facebooker solves the issue.
But I bet you don''t want to do that, eh? So, simply setting
ActionController::Base.asset_host = ''''
also works like butter.
I''m not 100% clear on why asset_host has anything to do with