热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Gemfileincorrectlygeneratedwhenusingrails4.1.0.beta1

Stepstoreproduce:

Steps to reproduce:

1
2
3
4
rvm use 2.0.0-rails-api --create

gem install rails --pre

gem install rails-api

rails-api new my-api

Output of the last command:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
      create  

      create  README.rdoc

      create  Rakefile

      create  config.ru

      create  .gitignore

      create  Gemfile

      create  app

      create  app/controllers/application_controller.rb

      create  app/assets/images/.keep

      create  app/mailers/.keep

      create  app/models/.keep

      create  app/controllers/concerns/.keep

      create  app/models/concerns/.keep

      create  bin

      create  bin/bundle

      create  bin/rails

      create  bin/rake

      create  config

      create  config/routes.rb

      create  config/application.rb

      create  config/environment.rb

      create  config/secrets.yml

      create  config/environments

      create  config/environments/development.rb

      create  config/environments/production.rb

      create  config/environments/test.rb

      create  config/initializers

      create  config/initializers/secret_token.rb

      create  config/initializers/wrap_parameters.rb

      create  config/locales

      create  config/locales/en.yml

      create  config/boot.rb

      create  config/database.yml

      create  db

      create  db/seeds.rb

      create  lib

      create  lib/tasks

      create  lib/tasks/.keep

      create  lib/assets

      create  lib/assets/.keep

      create  log

      create  log/.keep

      create  public

      create  public/404.html

      create  public/422.html

      create  public/500.html

      create  public/favicon.ico

      create  public/robots.txt

      create  test/fixtures

      create  test/fixtures/.keep

      create  test/controllers

      create  test/controllers/.keep

      create  test/mailers

      create  test/mailers/.keep

      create  test/models

      create  test/models/.keep

      create  test/helpers

      create  test/helpers/.keep

      create  test/integration

      create  test/integration/.keep

      create  test/test_helper.rb

         run  bundle install

Gemfile syntax error:

gem 'rails-api'

     ^

         run  bundle exec spring binstub --all

Gemfile syntax error:

gem 'rails-api'

     ^

And the Gemfile:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 ruby

source 'https://rubygems.org'



[#]

gem 'rails-api'



#



# To use ActiveModel has_secure_password

# gem 'bcrypt-ruby', '~> 3.0.0'



# To use Jbuilder templates for JSON

# gem 'jbuilder'



# Use unicorn as the app server

# gem 'unicorn'



# Deploy with Capistrano

# gem 'capistrano', :group => :development



# To use debugger

# gem 'ruby-debug19', :require => 'ruby-debug'


该提问来源于开源项目:rails-api/rails-api

Works fine on my end :+1:



Thanks !


   



推荐阅读
author-avatar
虚实人生轶事
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有