Top "Rails-console" questions

the interactive, command-line interface to the Ruby-based Rails framework.

Write to rails console

When I want to try or debug smthing I run rails console and do some stuff there. I can print …

ruby-on-rails ruby debugging development-environment rails-console
Rails: NameError: uninitialized constant

I have a simple model called PhoneNumber: class PhoneNumber < ActiveRecord::Base validates :pnumber, presence: true, on: :create #=> { :message =&…

ruby-on-rails ruby-on-rails-4 rails-console
Devise password reset from Rails console

While running an app how do you select a user by email address and then set the password manually within …

ruby-on-rails ruby ruby-on-rails-3 devise rails-console
Rails Console find users by array of ids

So I have an array of user ids. Is there a way in rails console to query all of these …

mysql ruby-on-rails ruby postgresql rails-console
Rails Console: reload! not reflecting changes in model files? What could be possible reason?

Earlier it was working fine. I have been playing little bit config. So may be i have changed some config …

ruby-on-rails ruby config reload rails-console
Rails console: Unable to autoload constant

I have a Customer_ratings model that allows users to leave feedback on each other. The web app is working …

ruby-on-rails-4 associations autoload rails-console
Truncate table(s) with rails console

I have this testingdatabase which, by now, is stuffed with junk. Now I've done a few Table.destroy_all commands …

ruby-on-rails ruby-on-rails-3 truncate rails-console
Rails Console - Find where created at = certain day

With Ruby on Rails console, is it possible to query the database for all records created on a certain day? …

ruby-on-rails ruby database postgresql rails-console
'You do not have access to the app' when trying to access heroku console

I recently started collaborating in a project on Heroku using Ruby on Rails. I was added as a collaborator and …

ruby-on-rails heroku collaboration rails-console rake-test
rails console doesn't start

I`m in root of my application, and when I type $ rails console It looks like something is loading, but …

ruby-on-rails ruby-on-rails-4 rails-console