My apologies if this is the wrong place for this but...it should be really simple. When I use a Generator in Radrails, nothing happens. I (believe) I have properly set the path to Ruby and still nothing. And, it doesn''t seem there is an error log to further diagnose what is happening. I am using 0.5.3 on Windows. Am I missing something obvious? As a P.S., is anyone particularly fond of any other Rails development environments? If so, what are the benefits or disadvantages relative to Radrails. Thanks, -Mark
Yeah, I''ve had that problem... and I always figured out that I was doing something wrong: the db connection wasn''t working, I didn''t have the names right, etc. Now, it would be nice if RadRails would tell you what''s wrong, but... I think they''re working on that. In the meantime, you might try calling the generator script in a console and see what happens. Make sure your db stuff is right too... b Mark W. wrote:> My apologies if this is the wrong place for this but...it should be really simple. > > When I use a Generator in Radrails, nothing happens. I (believe) I have properly set the path to Ruby and still nothing. And, it doesn''t seem there is an error log to further diagnose what is happening. > > I am using 0.5.3 on Windows. Am I missing something obvious? > > As a P.S., is anyone particularly fond of any other Rails development environments? If so, what are the benefits or disadvantages relative to Radrails. > > Thanks, > > -Mark > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I''ve had this issue as well (not too often though). I found that if I clicked on the project name in the rails file/folder view and then retried the generator, I found it worked. Kind of weird, magical even :) , but weird seems to be my mantra lately. Anyway, this is just my two cents. Regards, Brad. On 2/14/06, Ben Munat <bent@munat.com> wrote:> > Yeah, I''ve had that problem... and I always figured out that I was doing > something wrong: > the db connection wasn''t working, I didn''t have the names right, etc. Now, > it would be > nice if RadRails would tell you what''s wrong, but... I think they''re > working on that. > > In the meantime, you might try calling the generator script in a console > and see what > happens. Make sure your db stuff is right too... > > b > > Mark W. wrote: > > My apologies if this is the wrong place for this but...it should be > really simple. > > > > When I use a Generator in Radrails, nothing happens. I (believe) I have > properly set the path to Ruby and still nothing. And, it doesn''t seem there > is an error log to further diagnose what is happening. > > > > I am using 0.5.3 on Windows. Am I missing something obvious? > > > > As a P.S., is anyone particularly fond of any other Rails development > environments? If so, what are the benefits or disadvantages relative to > Radrails. > > > > Thanks, > > > > -Mark > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/3b3a4c47/attachment.html
What error are you getting? I had what sounded like the same problem. What was happening was when I created a Rails project in RadRails the "rails <projectname> was not being called or was broken. Dropping to a command prompt and running Rails <projectname> and then using RadRails to do the generation is working fine. Hope this helps -Rob Bazinet http://www.robertbazinet.com On 2/14/06, Mark W. <stuff@markwales.com> wrote:> > > My apologies if this is the wrong place for this but...it should be really > simple. > > When I use a Generator in Radrails, nothing happens. I (believe) I have > properly set the path to Ruby and still nothing. And, it doesn''t seem there > is an error log to further diagnose what is happening. > > I am using 0.5.3 on Windows. Am I missing something obvious? > > As a P.S., is anyone particularly fond of any other Rails development > environments? If so, what are the benefits or disadvantages relative to > Radrails. > > Thanks, > > -Mark > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/1eb0bc5f/attachment-0001.html
Thanks to all who responded - indeed it was a PATH issue. I thought setting it in the Ruby installed interpreters was enough, but apparently not. Ben - I did want to follow-up on your reference to "db stuff". Maybe I just haven''t gotten that far yet - but in my exploring I didn''t see DB-specific setting (or may have missed it somewhere). Just so I am clear, which settings are you referring to? I might be able to head off my next problem before it occurs... -Mark Ben Munat wrote:> Yeah, I''ve had that problem... and I always figured out that I was doing something wrong: the db connection wasn''t working, I didn''t have the names right, etc. Now, it would be nice if RadRails would tell you what''s wrong, but... I think they''re working on that. > > In the meantime, you might try calling the generator script in a console and see what happens. Make sure your db stuff is right too... > > b
I just meant in database.yml, which would be in the config directory *if* you had already created a project (sounds like you hadn''t). If you were trying to generate a model or a scaffold, the connection stuff in database.yml would need to be correct. I don''t think there is any db-specific configuration in radrails. Actually, the radrails data view uses your database.yml! That''s pretty smart. It''s still a little rough around the edges, but it''s getting there. b Mark W. wrote:> Thanks to all who responded - indeed it was a PATH issue. I thought setting it in the Ruby installed interpreters was enough, but apparently not. > > Ben - I did want to follow-up on your reference to "db stuff". Maybe I just haven''t gotten that far yet - but in my exploring I didn''t see DB-specific setting (or may have missed it somewhere). Just so I am clear, which settings are you referring to? I might be able to head off my next problem before it occurs... > > -Mark > > Ben Munat wrote: > >>Yeah, I''ve had that problem... and I always figured out that I was doing something wrong: the db connection wasn''t working, I didn''t have the names right, etc. Now, it would be nice if RadRails would tell you what''s wrong, but... I think they''re working on that. >> >>In the meantime, you might try calling the generator script in a console and see what happens. Make sure your db stuff is right too... >> >>b > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails