Note that there are some explanatory texts on larger screens.

plurals
  1. POrails generate controller comments throwing error
    primarykey
    data
    text
    <p>I am trying to generate comments controller using rails generate command but it is giving a weird error:-</p> <pre><code>$ rails generate controller comments The name 'CommentsController' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again. </code></pre> <p>I have checked but I don't have a comment controller. These are the commands I have tried:-</p> <pre><code>$ rails generate controller Comments create The name 'CommentsController' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again. $ rails generate controller comments The name 'CommentsController' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again. $ rails g controller Comments The name 'CommentsController' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again </code></pre> <p>Plz help me out here. </p> <p>This is the GemFile:-</p> <pre><code>source 'http://rubygems.org' gem 'rails', '3.2.13' gem 'bootstrap-sass', '2.1' # Bundle edge Rails instead: # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git' gem 'sqlite3' gem 'mysql' gem 'activeadmin' gem "meta_search", '&gt;= 1.1.0.pre' gem 'formtastic' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms =&gt; :ruby gem 'uglifier', '&gt;= 1.0.3' end gem 'jquery-rails' group :development, :test do gem 'rspec-rails', '~&gt; 2.11.0' gem 'factory_girl_rails', '~&gt; 3.5.0' gem 'capybara', '~&gt; 1.1.2' gem 'guard-rspec', '~&gt; 1.2.0' end # To use ActiveModel has_secure_password gem 'bcrypt-ruby', '~&gt; 3.0.0' # To use Jbuilder templates for JSON # gem 'jbuilder' # Use unicorn as the app server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use debugger # gem 'debugger' </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload