similar to: creating rubygem from assets

Displaying 20 results from an estimated 50000 matches similar to: "creating rubygem from assets"

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
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both - After bundle install when I do a rails g foundation:install I get the following: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable o r method `inheritable_attributes' for ActiveRecord::Base:Class (NameError)
2013 Jan 03
1
Trying to add bootstrap to existing project, getting CSS compile error: missing file
Trying to add bootstrap to an app being ported to Rails 3.2.3. I get the following error: Error compiling asset application.css: Sass::SyntaxError: File to import not found or unreadable: bootstrap. Here''s my gem file: source ''http://rubygems.org'' gem ''rails'', ''3.2.9'' group :assets do gem ''sass-rails'',
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 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey, in my `application.html.erb`, I have this line: <%= stylesheet_link_tag ''application'' %> which should compile through the asset pipeline and link to the application.css (which does a `require_tree .`). In development mode, I''d expect a <link ... href="/assets/application.css" /> This file is actually delivered by, for example, the
2012 Jan 29
1
AssetNotPrecompiledError for missing assets - really?
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 that''s not precompiled. Can somebody explain me the reason why this
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
2013 Jun 05
1
Precompile with compression in development
Hi, I''d like to do precompilation with compression in development mode. I''ve set config.assets.js_compressor = :uglifier config.assets.css_compressor = :sass in development.rb. But compression only seems to work in production mode, is that right? Michael Kastner -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2012 Feb 01
0
Rails 3.1 form & routes.rb [newbie]
Hi all, maybe is a newbie question anyway 1. I create de rails app with # rails new {my app} 2. after I add some gem to my Gemfile source ''http://rubygems.org'' gem ''rails'', ''3.1.1'' gem ''sqlite3'' gem ''simple_form'' gem ''execjs'' gem ''therubyracer'' # Gems used only
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
2011 Nov 30
2
bundle exec fail
WTF... how to solve? (REE ruby/Ubuntu 10.04) $ dpkg -l |grep ruby ii ruby-enterprise - 1.8.7-2011.03 - Ruby Enterprise Edition. $ bundle exec /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:344:in `exec'': wrong number of arguments (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:344:in `exec'' from
2011 Aug 02
1
Rails 3.1 jasmine testing
Anybody know what to put in the jasmine.yml to desginate where jasmine should look for the files? I am using jasmine-headless-webkit so I can write CoffeeScript (and run the tests in the cli), and my test work fine written in it, though when I put app/assets/javascripts/**/*.js.coffee in the jasmine.yml, I keep getting ReferenceErrors. -- You received this message because you are subscribed
2012 Mar 20
0
Setting cache_classes to false results in blank pages
Have anyone else stumbled upon this weird behavior? Setting the config.cache_classes = false for development env causes rails to return responses with totally empty content, headers seem to work ok. It does not matter what the controller returns, even a simple :text => "OK" will result in empty page. I''m using rails 3.2.2 and ruby 1.9.3. It probably has something to do with
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
I''m running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. I need to back down rails to 3.1.0 for a project but when I do that a simple index page give me a ActiveRecord::ConnectionNotEstablished error. Rails 3.2.3 works, 3.1.0 not. Any ideas? Just to show you it''s nothing fancy.... Gem file is only: source ''https://rubygems.org'' gem
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2011 Jul 22
0
Asset Pipeline and Sprockets
Ok I would love to work out how to use the new Raisl 3.1 Asset Pipeline with SCSS variables, mixins etc and being able to use the asset_path tag. What I have so far is this. Im my application.css.scss I have the following. *= require_self *= require layout *= require home This works fine with using the asset_path helper and variable within layout ie, // layout.css.scss.erb
2012 Apr 17
0
[JOB] Director of Technology - Full Time - Boston, MA
CareerEncore (www.careerencore.com) has been exclusively engaged to help our client, a Boston VC backed start-up, to conduct a search for a Director of Technology. This is a unique opportunity for a RoR Developer to step into a hands-on leadership role. The envisioned hire is currently a Senior Engineer who is looking to make the jump into a hands-on leadership role. Our client is only
2011 May 28
0
Coffeebeans - smart to use?
Not sure if inline coffeescript is smart. Has just learned why inline javascript not is smart, so I don''t understand why it now should be a good thing with coffeescript. On the other hand: I find the ability to use it when responding to JavaScript (JS) requests very nice, so I wonder why this is not an standard option in Rails 3.1.rc1? Will this come i future releases? Will it therefore
2012 Feb 20
0
Cannot start rails server: Please install the adapter: `gem install activerecord--adapter`
My app was working sublime ''till this morning when I noticed this strange error when running rails server: $ rails s => Booting WEBrick => Rails 3.2.1 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in
2013 Jan 22
1
rails datatables refresh javascript
Hi I followed a railscast episode and got datatables up and running, beautifully along with the nice jquery-ui as in the front page. The main issue I''m having though is that I suck at CoffeeScript/JS ~_~ I''m trying get the datatables to reload every 1 second but I don’t see any request coming into my webserver for refreshes and hence, no refreshes on the web page itself.