rails-composer | The Rails generator | Application Framework library
kandi X-RAY | rails-composer Summary
kandi X-RAY | rails-composer Summary
Rails Composer. The Rails generator on steroids for starter apps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build a gemspec string
- Sets the options .
- Set the group key
rails-composer Key Features
rails-composer Examples and Code Snippets
Community Discussions
Trending Discussions on rails-composer
QUESTION
I have just completed the detailed and well-explained Rails tutorial by Daniel Kehoe and am at the end trying to experiment with Rails Composer. I am having a problem creating the app on both Cloud 9 and Windows 10 with the same error. The app creates but only a basic rails app and not the Rails composer app with all the extra features.
First I tried to create the new project with the following command:
...ANSWER
Answered 2018-Mar-20 at 14:01Your endpoint is not reachable, try:
QUESTION
# I run these commands:
$ rvm current
ruby-2.3.3@rails500
$ gem list | grep '^rails '
rails (5.0.1, 5.0.0)
$ gem uninstall rails -v 5.0.1
Successfully uninstalled rails-5.0.1
$ gem uninstall railties -v 5.0.1
Successfully uninstalled railties-5.0.1
$ gem list | grep railties
railties (5.0.0)
$ rails -v
Rails 5.0.0
$ rails new . -m \
https://raw.github.com/RailsApps/rails-composer/master/composer.rb
# After I answer all the prompts, a Gemfile is created, which requires
# rails '~> 5.0.1'. After running to completion, Rails Composer leaves
# me with Rails 5.0.1:
$ rails -v
Rails 5.0.1
...ANSWER
Answered 2017-Jan-07 at 09:11You've observed a behavior of the Rails new
command. Rails Composer is a Rails application template and piggybacks on the Rails new
generator. The Rails new
command generates a simple default Rails application and then Rails Composer modifies it. The Gemfile generated by the Rails new
command contains gem 'rails', '~> 5.0.0'
. Note the "pessimistic versioning" specified by ~> 5.0.0
. It means use any version greater than 5.0.0 and less than 5.1 (any patch version can be used). When the Rails new
generator runs, it updates the gems, including the Rails gem, using the Gemfile provided by the simple default Rails application. Thus, the Rails 5.0.1 gem is installed before Rails Composer runs.
You can observe this behavior by running the Rails new
command without the Rails Composer application template.
myapp/2.4.0@rails500 $ rvm current
ruby-2.4.0@rails500
myapp/2.4.0@rails500 $ gem list | grep '^rails '
rails (5.0.0)
myapp/2.4.0@rails500 $ rails -v
Rails 5.0.0
myapp/2.4.0@rails500 $ rails new .
.
.
.
run bundle install
.
.
.
Installing rails 5.0.1
.
.
.
myapp/2.4.0@rails500 $ rails -v
Rails 5.0.1
In summary, your issue is with the Rails new
command, not with Rails Composer.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rails-composer
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page