Included #import "twitter/bootstrap"; in application.css.scss
Included //= require twitter/bootstrap in application.js
My GEMFILE:
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'pg'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',:github => 'anjlab/bootstrap-rails', :branch => '3.0.0'
Related
I'm trying to install active admin which I was partly successful with. However, I want to use the '0-6-stable' and not the "1.0.0.pre2" version. When I changed my gem file to reflect my change, I get the following error message:
Resolving dependencies...
Bundler could not find compatible versions for gem "formtastic":
In Gemfile:
activeadmin (>= 0) ruby depends on
formtastic (~> 2.0) ruby
formtastic (3.2.0.pre)
Now, I've gotten this message before and I would just delete my Gemfile.lock but it doesn't seem like that is working.
Copy of my gem file:
source 'http://rubygems.org'
ruby '2.2.1'
gem 'ransack', github: 'activerecord-hackery/ransack'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'formtastic', github: 'justinfrench/formtastic'
gem 'rails', '~> 4.2', '>= 4.2.5'
gem 'railties', '~> 4.2', '>= 4.2.5'
gem 'sqlite3', group: :development
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails', '~> 4.0', '>= 4.0.5'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'rails_12factor', group: :production
gem 'pg', group: :production
gem 'activeadmin', github: 'activeadmin', branch: '0-6-stable'
#gem 'will_paginate', '~> 3.0'
#gem 'will_paginate-bootstrap'
gem 'carrierwave'
gem "fog"
gem "figaro"
gem 'execjs'
gem 'tzinfo-data', platforms: [:mingw, :mswin]
gem "mini_magick"
gem 'devise'
gem 'searchkick'
group :development, :test do
gem 'rspec-rails', '~> 3.0'
end
The reason I want to use the most stable version of active admin is because I'm getting "NoMethodError in Admin::AdminUsersController#index" when I select "Admin Users" I hoping that using the stable version will correct this issue.
EDIT: The ActiveAdmin Issue: https://github.com/activeadmin/activeadmin/issues/4249
You can't use the 0-6-stable branch, if you use rails >= 4.x, 0-6-stable works only with rails <= 3.x.
This mean's your Gemfile need to look like this:
source 'http://rubygems.org'
ruby '2.2.1'
gem 'rails', '~> 4.2', '>= 4.2.5'
gem 'railties', '~> 4.2', '>= 4.2.5'
gem 'sqlite3', group: :development
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails', '~> 4.0', '>= 4.0.5'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'rails_12factor', group: :production
gem 'pg', group: :production
gem 'activeadmin', github: 'activeadmin'
#gem 'will_paginate', '~> 3.0'
#gem 'will_paginate-bootstrap'
gem 'carrierwave'
gem "fog"
gem "figaro"
gem 'execjs'
gem 'tzinfo-data', platforms: [:mingw, :mswin]
gem "mini_magick"
gem 'devise'
gem 'searchkick'
group :development, :test do
gem 'rspec-rails', '~> 3.0'
end
From the ActiveAdmin point of view there is no need to use ransack, inherited_resources and formtastic from github.
1: remove Gemfile.lock
2: Add gem 'jquery-rails'
3: add gem 'formtastic'
4: Run bundle install
Still if you have any issue in bundle Github Active Admin ,I would like to say go with rails 3.2.
Hope this help you !!!
After commenting out normalize-scss in my Gemfile and running rails -s, I get:
bin/rails:6: warning: already initialized constant APP_PATH
/Users/ItsMe/foo/bar/bin/rails:6: warning: previous definition of APP_PATH was here
Adding the gem back in lets me run the server.
...why? I've already checked bin/rails:6, and APP_PATH looks totally fine.
Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.2.4'
gem 'pg', '~> 0.18.3'
gem 'sass-rails', '~> 5.0'
gem 'compass-rails', '~> 2.0', '>= 2.0.5'
# gem 'normalize-scss', '~> 3.0', '>= 3.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
# gem 'therubyracer', platforms: :ruby
gem 'jquery-rails'
# gem 'bootstrap-sass', '~> 3.3', '>= 3.3.5.1'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'figaro', '~> 1.1', '>= 1.1.1'
gem 'susy', '~> 2.2', '>= 2.2.6'
gem 'breakpoint', '~> 2.5'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
group :development, :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
gem 'spring'
end
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
group :production do
gem 'rails_12factor', '~> 0.0.3'
end
Solved it. I had required the gem in config/application.rb. Removed it, and solved.
Ruby byebug never seems to stop in any of my code. It installed properly without errors. I did a bundle update byebug as well as gem pristine byebug. I start the rails server with this command rails s -e development
Here's the gem file
source 'https://rubygems.org'
#ruby '2.0.0'
gem 'multi_json', '1.7.8'
gem 'rails' #, '4.0.5'
#gem 'activerecord-session_store', github: "rails/activerecord-session_store", branch: 'master'
gem "activerecord-session_store", "~> 0.1.0"
gem 'devise', '3.1.1'
gem 'rolify', '~> 3.4'
gem 'cancan', '~> 1.6.10'
#gem "resque", "~> 2.0.0.pre.1", github: "resque/resque"
gem 'resque', '~> 1.25.1', :require=>"resque/server"
gem 'resque-retry', '~> 1.0.0.a'
gem 'resque-scheduler', '~> 2.5.3', :require => "resque_scheduler/server"
gem 'resque-pool', '~> 0.3.0'
gem 'resque_mailer', '~> 2.2.6'
gem 'god', '~> 0.13.4'
gem 'gravtastic', '~> 3.2.3', :require => "gravtastic"
gem 'aws-ses', '~> 0.6.0', :require => 'aws/ses'
# stripe/payments
gem 'stripe', '~> 1.10.1'
gem 'stripe_event', '~> 1.3.0'
gem 'stripe-rails', '~> 0.2.6'
gem 'koudoku', '~> 0.0.11'
# ultra hook for wen hook testing
gem 'ultrahook', '~> 0.1.3'
# bill data
gem 'sunlight', '~> 1.1.0'
gem 'congress', '~> 0.2.3'
gem 'openstates', '~> 0.0.1'
#admin stuff
# gem 'rails_admin', '~> 0.6.1'
gem 'will_paginate', '~> 3.0.5'
gem "statsd-ruby", :require => "statsd"
gem 'paperclip', '= 3.5.4'
gem 'aws-sdk', '~> 1.5.7'
gem 'roadie', '~> 2.4.3'
gem 'exception_notification', '~> 4.0.1'
gem 'exception_handler', '~> 0.3.45'
gem 'spawnling', '~> 2.1.1'
gem 'acts_as_list', '~> 0.4.0'
gem 'jquery-rails', '~> 3.1.0'
gem "jquery-ui-rails", '~> 4.2.1'
gem 'jquery-timepicker-rails', '~> 1.3.7'
gem 'time_splitter', '~> 1.0.0'
gem 'pg', '~> 0.17.1'
gem 'gibbon', "~> 1.0.4"
gem 'coffee-rails', "~> 4.0.1"
gem 'carmen', "~> 1.0.1"
gem 'nested_form', "~> 0.3.2"
gem 'simple_form', "~> 3.0.2"
gem 'ckeditor', '~> 4.1.0'
gem 'tinymce-rails', "~> 4.0.19"
gem 'fileuploader-rails', '= 3.5'
gem 'email_validator', "~> 1.4.0"
gem "impressionist", "~> 1.5.1"
gem 'rack-timeout', '~> 0.0.4'
gem 'protected_attributes', '~> 1.0.8'
# Gem to embed youtube/vimeo videos
gem 'conred', '~> 0.5.0'
# Gem to implement copy to clipboard functionality via flash
gem 'zeroclipboard-rails', '~> 0.1.0'
gem 'geocoder', '~> 1.1.9'
gem 'rack-ssl-enforcer', '~> 0.2.8'
gem 'newrelic_rpm', '~> 3.9.6.257'
# to put environment variable configurations
gem 'figaro', '~> 1.1.1'
gem 'byebug'
gem 'pry-byebug'
# better way of displaying errors on dev
gem 'better_errors', '~> 2.1.1'
gem 'binding_of_caller', '~> 0.7.2'
#gem 'debugger', '~> 1.6.8'
group :development, :test do
gem 'rspec-rails', '~> 2.14.1'
gem 'timecop', '~> 0.7.1'
gem 'spork', '~> 1.0rc'
gem 'guard', "~> 2.6.0"
gem 'guard-rspec', "~> 4.2.8"
gem 'rb-fsevent', "~> 0.9.3"
gem "jasmine-rails", "~> 0.5.1"
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 4.0.0'
gem "compass-rails", "~> 1.1.2"
gem 'uglifier', '>= 1.3.0'
end
I had downgrade to a lower version of byebug and it works. Not sure what incompatibilities there may have been with the latest version. Using 3.5.1 worked for me.
gem 'byebug', '~> 3.5.1'
I am having a very hard time displaying any Glyphicons in my Rails app. I can't display any of the BS 2.3 doc icon sets anywhere in my app. I actually downloaded a gem with some icons and those work great but I want to use the BS ones. What are some possible reaosns for this? This is my gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'bootstrap-sass', '~> 2.3.2.0'
gem 'bcrypt-ruby', '= 3.0.1'
gem 'twilio-ruby'
gem 'will_paginate'
gem 'bootstrap-will_paginate'
gem 'font-icons-rails', :git=> 'git://github.com/shorelabs/font-icons-rails.git'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
group :development do
gem 'quiet_assets'
gem 'pry'
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
For example, this line of code wont produce any icons in my Nav partial:
<li>
<%= link_to(new_category_path) do %>
<i class="icon-plus"></i>
New Category
<% end %>
</li>
I'm trying to push my rails app to Heroku, but I got this error:
"couldn't find file 'turbolinks' - however 'turbolinks" is in my gemfile (attached).
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'jquery-rails'
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
group :assets do
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
end
group :doc do
gem 'sdoc', require: false
end
Rails 4 doesn't use the :assets group anymore. See http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-3-2-to-rails-4-0 and discussion from SO here: Why did Rails4 drop support for "assets" group in the Gemfile.