dojo-pkg & drails with Rails 2.3.3

17 views
Skip to first unread message

Coondog

unread,
Mar 24, 2009, 12:29:42 PM3/24/09
to dojo-pkg
Hi dojo-pkg-

I've been trying to get dojo-pkg to work with Rails 2.3.2 to no avail:
>gem install dojo-pkg
works like a charm, confirms dojo-pkg-1.123.0 + ri + rdoc install
successfully; however, trying
>dojofy
gets:
Unknown command 'dojofy'. Type 'help' to show the list of available
commands.

I've googled quite a bit and found no mention of errors or
compatibility issues of dojo-pkg and Rails 2.3.2, so not sure if
anyone's tried this yet or not.

Any thoughts?

Also, since dojo-pkg & dojofy seem to be fundmental to drails, I think
this is at the core of why I've been unable to successfully install
drails 1.0 in (a) my working Rails 2.3.2 project, (b) a net-new Rails
2.3.2 project with my default set of plugins+gems (restful_auth, et
al.), then (c) a net-new Rails 2.3.2 project with nothing else in it;
all experience this same Unknown command 'dojofy' error, and then do
nothing when I try to install drails 1.0 (no confirmation of install,
and no error messages; only creates ./myapp/vendor/plugins/drails
which is empty, and nothing else appears to happen.

Btw, downloaded and got drails sample-app Ideapad up & running no
problem on RadRails + Instantrails 1.8 on Windoze. Great simple
example of Dojo goodness riding Rails, and the drails generators for
module|dijit|build are sweet -- would love to start playing with them
in my working project.

Thanks much, & happy to provide any additional info if you'd like-
--Jeff

Bob Remeika

unread,
Mar 24, 2009, 2:59:04 PM3/24/09
to dojo...@googlegroups.com
Hi Jefe,

I've got a patch that I have been working on for compatibility issues with drails and rails 2.3.x.  I was unaware of any problems with dojo-pkg and the new version of rails so thanks for the report.  I will be cutting a new compatibility release for drails either tonight or tomorrow night, and I'll be sure to drop a note about the dojo-pkg issues.

Thank you so much for your email and I'm glad to hear that you like the code.  I'll be sure to get these issues resolved ASAP.

Regards,
Bob

Coondog

unread,
Mar 26, 2009, 10:22:01 AM3/26/09
to dojo-pkg
Wow, thanks much for the quick response Bob, that's awesome.

I'm a noob, but as I learn more I'd be happy to help with figuring out
bugs, and maybe show some examples of dojofying Rails 2.3 nested
forms.

Cheers-
--Jeff

Coondog

unread,
Mar 26, 2009, 10:22:01 AM3/26/09
to dojo-pkg
Wow, thanks much for the quick response Bob, that's awesome.

I'm a noob, but as I learn more I'd be happy to help with figuring out
bugs, and maybe show some examples of dojofying Rails 2.3 nested
forms.

Cheers-
--Jeff

On Mar 24, 11:59 am, Bob Remeika <bob.reme...@gmail.com> wrote:

Bob Remeika

unread,
Mar 27, 2009, 3:57:03 AM3/27/09
to dojo...@googlegroups.com
Jeff,

Is ruby in your path?  You mentioned that you are using windows.

Check out this article to see how to add environment variables under windows.

As I write this email I am setting up a windows dev environment so I can try and duplicate your problem.  I should have an answer for you later tonight or tomorrow, but adding ruby to your path might fix the problem.

Regards,
Bob

Coondog

unread,
Apr 2, 2009, 1:14:27 PM4/2/09
to dojo-pkg
Hi Bob-

Apologies for taking so long to reply back.

I checked & debugged my PATH as you suggested; turns out I was in fact
pointing my path to an old instance of Ruby/Rails (InstantRails 1.7,
w/ Ruby 1.2.3 and Rails 2.1). I fixed this, pointing to my 'latest'
dev path, with Ruby 1.8.6 and Rails 2.3.2.

Crossed my fingers, rebooted, fired up RadRails, created a new test
Rails project:
>rails test -d mysql

>gem/install dojo-pkg => success! received confirmation of install messages w/ URLs to dojo-pkg/rubyforge.org and dojotoolkit.org.

>dojofy => success! "You have just dojofied your app!" excellent

>script/plugin install git://github.com/foobarfighter/drails.git => ?
install action completed, and in Radrails I can go over to the Rails
Plugins view and see drails listed as an available plugin; however,
received none of the confirmation messages I'd expected to see (good
or bad) from reviewing your installer.rb file, none of the drails rake
tasks are available, and trying script/generate dojo to review help
receives "Couldn't find 'dojo' generator" in console. So, it doesn't
appear drails install completed its mojoizing of the proj.

Hope this helps.

Btw, being as you're far more in the know on Dojo than my own
n00bness:
- any word or rumor of Dreamweaver extensions for Dojo for rapid(er)
dev goodness (similar to those crafted for jQuery)?
- any feedback on Dojo-plugd? At least for now it's likely somewhat
overkill for what I'm seeking to do, but my initial take is that it
looks pretty darn cool...

Thanks for taking the time to help me debug this Bob, and let me know
anything else you'd like me to try.

Cheers-
--Jeff

On Mar 27, 12:57 am, Bob Remeika <bob.reme...@gmail.com> wrote:
> Jeff,
> Is ruby in your path?  You mentioned that you are using windows.
>
> Check out this article to see how to add environment variables under
> windows.http://www.computerhope.com/issues/ch000549.htm
Reply all
Reply to author
Forward
0 new messages