Top "Rails-console" questions

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

Delete all in rails console

i have an association for a user as user has_many agents and agent belongs_to user. in rails console,…

ruby-on-rails ruby ruby-on-rails-3 rails-console
Rails console not working on server

When I run bundle exec rails console production or rails console production via SSH on the server in the Current …

ruby ruby-on-rails-4 ssh rails-console
Get rails associations from console

I have a model in my Rails application - User. I want all the associations to be listed in rails …

ruby-on-rails console rails-console
How can I print each element of an array on its own line in the Rails console?

When I run the Rails console, how can I display each item on its own line? Instead of > Post.…

ruby-on-rails ruby rails-console
How can I run an ActiveJob in Rails console for debugging?

I currently have an ActiveJob that I've created and use Sidekiq to queue it. I'm wanting to debug the job, …

ruby-on-rails sidekiq rails-console rails-activejob
Is there a way in the Rails Console to print a table of database contents?

I'm looking for a clean and simple way to print in the Rails Console the contents of my 5 row database …

ruby-on-rails ruby rails-console
Rails 3 Sandbox Console

In Rails 2 you're able to run script/console --sandbox so you can play with production data and not accidentally break …

ruby-on-rails rails-console
Can I get the Ruby on Rails console to remember my command history, umm, better?

I'm using the console in Ruby on Rails 3.1.1, and I'm finding its command history (up arrow) to be really flaky. …

ruby-on-rails-3 rails-console
Equivalence of Rails console for Node.js

I am trying out Node.js Express framework, and looking for plugin that allows me to interact with my models …

ruby-on-rails node.js console rails-console
How to access class variable in Model class

I want to define the class variable test, threshold so that I can use Order.test, Order.threshold in my …

ruby-on-rails rails-console