# Rad Rails and rails console

**URL:** <https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929>\
**Category:** Rails\
**Created:** [February 17, 2006, 3:39am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929 "2006-02-17T03:39:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 3:39am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/1 "2006-02-17T03:39:50Z")

</div>

Hello,

In learning Ruby on rails I became hooked on using the Console (ruby  
script/console) to interact with models. I have been playing with  
RadRails over the past week and haven’t figured out how to get a console  
going (or if this feature is even available). Though documentation is  
minimal, RadRails is fairly intuitive and overall a nice way to write  
apps. I just can’t figure out how to access the console.

Any suggestions? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 4:54am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/2 "2006-02-17T04:54:57Z")

</div>

From the command prompt go to the root directory were you have created  
the project. (the place from where you can see the app directory)

Type: ruby script/console

You can start using it.

If you want to reset the console because you have modified any of the  
models then

Dispatcher.reset\_application! will reset the console without having to  
exit

richard downe wrote:

> Hello,
> 
> In learning Ruby on rails I became hooked on using the Console (ruby  
> script/console) to interact with models. I have been playing with  
> RadRails over the past week and haven’t figured out how to get a console  
> going (or if this feature is even available). Though documentation is  
> minimal, RadRails is fairly intuitive and overall a nice way to write  
> apps. I just can’t figure out how to access the console.
> 
> Any suggestions? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 5:18am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/3 "2006-02-17T05:18:05Z")

</div>

You can also run external tools within Eclipse.

Click Run -\> External Tools -\> External Tools

Create a New tool

Location: c:\ruby\bin\ruby.exe  
Working directory: ${project\_loc}  
Arguments: script\console

Hope this helps

---

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 5:18am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/4 "2006-02-17T05:18:47Z")

</div>

Rath wrote:

> You can also run external tools within Eclipse.
> 
> Click Run -\> External Tools -\> External Tools
> 
> Create a New tool
> 
> Location: c:\ruby\bin\ruby.exe  
> Working directory: ${project\_loc}  
> Arguments: script\console
> 
> Hope this helps

Don’t forget to Name the tool and apply changes.

---

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 7:05am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/5 "2006-02-17T07:05:56Z")

</div>

richard downe wrote:

> Rath wrote:
> 
> > Rath wrote:
> > 
> > > You can also run external tools within Eclipse.
> > > 
> > > Click Run -\> External Tools -\> External Tools
> > > 
> > > Create a New tool
> > > 
> > > Location: c:\ruby\bin\ruby.exe  
> > > Working directory: ${project\_loc}  
> > > Arguments: script\console
> > > 
> > > Hope this helps
> > 
> > Don’t forget to Name the tool and apply changes.
> 
> Thanks Rath. I’m familiar with running the console from a windows  
> command prompt (for example) but I’m trying to access the same feature  
> in Rad Rails. I took your suggestion about Eclipse and within RadRails,  
> it seems as if you need to go to the Ruby ‘perspective’ to see ‘Run’.  
> But, under ‘Run’ ther is no option for External tools. I’ve tried  
> entering ‘script/console’ as an argument but I keep getting an error  
> message - ‘unable to load module’. The strange thing is if I run  
> script/generate, I get the help screen for ‘generators’, so at least  
> script does work. It’s just the console side of things that isn’t  
> working.  
> Thanks again.

**Update**  
It did manage to work. I went back to the terminal window (in RadRails)  
and the environment loaded just fine.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![runrunshaw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Post date:** [February 17, 2006, 6:45am UTC](https://www.ruby-forum.com/t/rad-rails-and-rails-console/53929/6 "2006-02-17T06:45:02Z")

</div>

Rath wrote:

> Rath wrote:
> 
> > You can also run external tools within Eclipse.
> > 
> > Click Run -\> External Tools -\> External Tools
> > 
> > Create a New tool
> > 
> > Location: c:\ruby\bin\ruby.exe  
> > Working directory: ${project\_loc}  
> > Arguments: script\console
> > 
> > Hope this helps
> 
> Don’t forget to Name the tool and apply changes.

Thanks Rath. I’m familiar with running the console from a windows  
command prompt (for example) but I’m trying to access the same feature  
in Rad Rails. I took your suggestion about Eclipse and within RadRails,  
it seems as if you need to go to the Ruby ‘perspective’ to see ‘Run’.  
But, under ‘Run’ ther is no option for External tools. I’ve tried  
entering ‘script/console’ as an argument but I keep getting an error  
message - ‘unable to load module’. The strange thing is if I run  
script/generate, I get the help screen for ‘generators’, so at least  
script does work. It’s just the console side of things that isn’t  
working.  
Thanks again.
