Forum: Ruby on Rails Help with RadRails...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Davo (Guest)
on 2007-02-01 15:29
(Received via mailing list)
Hi everyone,

I hope someone can help with some RadRails guidance...
( on WIndows XP )

I've been using UltraEdit and it's Project management is good, but I
feel RadRails should be better with the inbuild Ruby and RoR
features...

I've tried working through the tutorials on the web site for example
the CookBook tutorial & it tells me to go the Generators Pane, which I
find, but then it tells me to select an open project in the Rails
Navigator, so I go there, but don't know what to do.  I have the
project open that I am working with - so I'm just pulling my hair out
going round and round in circles - it can't be this hard !!!!

Anyone using RadRails and can help I would very much appreciate it !

TIA - Dave P.
John I. (Guest)
on 2007-02-01 16:13
(Received via mailing list)
what web site are you looking at?
Chris H. (Guest)
on 2007-02-01 16:20
(Received via mailing list)
did you create your project in radrails?

in order to use the generators, you need to have the project open and
selected, or a file or directory in the project selected.  then go to
the generator pane, select what generator you want to use (controller,
model, etc), enter a name, and click 'go' button.
Miguel Castro (Guest)
on 2007-02-01 16:29
(Received via mailing list)
Keyword is 'selected'.
Davo (Guest)
on 2007-02-01 16:37
(Received via mailing list)
Thanks for your help guys, but I just can't get past the generator tab-
page telling me to select an open rails project...

The project exists, I have files open from the project, the server is
running, but that's it !!!

I can see the two projects that exist both in the Rails Navigator, but
which one is 'Selected'  ?  I can't see anything in the menus or
navigators that tells me what project is 'Open' at any one time, they
all seem to just be visible.

Just played around some more and it must be something to do with the
way I'm creating projects.  I go through the project wizard and all
seems OK.
Then I create the webrick server for that project, but when I click
browse, nothing happens.  So I put in the name of the project and it
seems OK.  But I'm guesing that is not right ???  I also seem to only
be allowed one server to be configured.  When I create a second one
the previous one dispears.  I'm guessing I don't have to create a new
server everytime I switch projects ?

Thanks Again !

cheers, Dave
Davo (Guest)
on 2007-02-01 16:52
(Received via mailing list)
Hi Miguel,   That is now apparent to me, but how do you 'select' a
project.

I right click on the project name, no 'select' option ( but there is a
'close project' option )
If I try double clicking the name, that just opens and closes the tree
for that project.

I know I'm going to be kicking myself when I get this, but is just not
obvious !

cheers, Dave
John I. (Guest)
on 2007-02-01 17:34
(Received via mailing list)
i just click once on anything in that project (highlighted in gray)
and the console works for me for that project. I can have a layout
select in the project and the console works.

hth
john
Davo (Guest)
on 2007-02-01 17:46
(Received via mailing list)
If it is of any help, here is an image of what it looks like....
http://www.dj-software.com.au/radrails1.jpg
Dave
Davo (Guest)
on 2007-02-01 17:51
(Received via mailing list)
Forgot to mention, when I browse within RadRails, It works OK & see
the correct results that I expect...
So the server must be configured and working correctly...
Dave
John I. (Guest)
on 2007-02-01 18:48
(Received via mailing list)
sorry for the "is it plugged in" question, but is it configured
correctly?
go to window > preferences

i attached a screen shot of my set up. I use instant rails.
Josh G. (Guest)
on 2007-02-01 18:51
Davo wrote:
> Forgot to mention, when I browse within RadRails, It works OK & see
> the correct results that I expect...
> So the server must be configured and working correctly...
> Dave

All you have to do is select a file in the project and then goto the
generator pane and choose what to generate, put in a name, and click
'Go'. They say select a project because people have different projects
open and clicking on a file under a project 'activates' that project.
So, let's say we have to projects in the tree:

Project1
-Folder1
--File1
Project2
-Folder2
--File2

Clicking on 'File1' and then going to the generator pane and generating
a file generates that file for THAT project. Clicking on 'File2' and
going to the generator pane and generating a file generates it for
Project2.
Davo (Guest)
on 2007-02-02 00:33
(Received via mailing list)
Thanks John,

I don't use instant rails, but one thing I did notice is that it won't
let me  enter just 'rake' in the second setting, it only allows
rake.bat, else it complains about the entry

Also I don't have a mongrel_rails file in my bin folder ?  Is that
necessary ?

regards, Dave P.
Davo (Guest)
on 2007-02-02 00:39
(Received via mailing list)
Hi Josh,

I understand that - but I have NEVER seen anything in the generator
pane other than the message for me to select an open project !

And I have done exactly what you have described...

regards, Dave


On Feb 2, 1:51 am, Josh G. <removed_email_address@domain.invalid>
John I. (Guest)
on 2007-02-02 05:34
(Received via mailing list)
I know i'm not much help but when I first added radrails I had trouble
with the console. I think then I upgraded my instant rails and it
seems to work now.
I used the command line alot.

I guess instant rails is now using mongrel
i'm not sure about webrick as a server. sorry

John
Curt H. (Guest)
on 2007-02-02 06:40
(Received via mailing list)
On 2/1/07, Davo <removed_email_address@domain.invalid> wrote:
>
>
> Thanks John,
>
> I don't use instant rails, but one thing I did notice is that it won't
> let me  enter just 'rake' in the second setting, it only allows
> rake.bat, else it complains about the entry


The one-click installer has subsumed the "rake" file into its own
"rake.bat".
The next release will include both files (Instant Rails already does
this).
If you use Instant Rails and install RadRails in the Instant Rails base
directory, then RadRails will automatically be configured with all the
proper paths.

Also I don't have a mongrel_rails file in my bin folder ?  Is that
> necessary ?


If you want to develop with the Mongrel web server (instead of the
WEBrick
server), then you have to install Mongrel (in a console window, run the
command: "gem install mongrel"). These days Mongrel has become the
preferred
server for Rails.

Curt
Davo (Guest)
on 2007-02-02 08:36
(Received via mailing list)
Thanks for the clarification Curt,

I'll have to give this away and go back to UltraEdit for now as I've
wasted way too much time on this - plus with all my mucking around
I've broken my Apache server, so I can't run phpMyAdmin anymore !@#$%

cheers - Dave
Chris H. (Guest)
on 2007-02-02 14:18
(Received via mailing list)
Davo,

from that image, it doesn't look like your project is a rails project
specifically because there is no "rails" symbol on the project folder
in the navigator.

see attached image for what i am talking about.
This topic is locked and can not be replied to.