Skip to content
Tags

console –sandbox

March 10, 2011

Using the rails console sandbox can be useful. This is what rails says about sandbox: They talk about it in edgeguides:

http://edgeguides.rubyonrails.org/command_line.html

If you wish to test out some code without changing any data, you can do that by invoking rails console --sandbox.

$ rails console --sandbox
Loading development environment in sandbox (Rails 3.0.0)
Any modifications you make will be rolled back on exit
irb(main):001:0>
Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: