active_scaffold

Following this tutorial for setting up ActiveScaffold with Rails3:
http://vhochstein.wordpress.com/2010/08/28/setupactivescaffoldrails3/#comment-4

and, when I run the following command:

rails g active_scaffold_setup [prototype| jquery]

I get the following:

C:\Users\Abder-Rahman\Desktop\howto>rails g active_scaffold_setup
[prototype| jq
uery]
'jquery]' is not recognized as an internal or external command,
operable program or batch file.

Why is that?

Thanks.

And, also:

C:\Users\Abder-Rahman\Desktop\howto>rails g active_scaffold_setup
[prototype]
Could not find generator active_scaffold_setup.

C:\Users\Abder-Rahman\Desktop\howto>rails g active_scaffold_setup
[jquery]
Could not find generator active_scaffold_setup.

C:\Users\Abder-Rahman\Desktop\howto>rails g active_scaffold_setup
[prototype| jq
uery]
'jquery]' is not recognized as an internal or external command,
operable program or batch file.

Why is that?

Because you're supposed to run either rails g active_scaffold_setup
prototype or rails g active_scaffold_setup jquery depending on which
js library you'd rather be used/

Fred

Frederick Cheung wrote:

in linux the | symbil means or in many cases and brackets [ ] means optional

radhames brito wrote:

in linux the | symbil means or in many cases and brackets [ ]
means
optional

Thanks @radhames. If you see my preceding posts you will find that I
don't get the command to run. I don't know where is the issue.

i suggest you dont user active scaffold until you know more about rails, it is only useful if you dont want to learn and are lazy

radhames brito wrote:

i suggest you dont user active scaffold until you know more about rails,
it
is only useful if you dont want to learn and are lazy

@radhames. The case I want to use ActiveScaffold is that there is a very
quick application I have to get done. But, as you see, stuck in that
command.

pass the command without brackets

oh ok i see you cant get the generator to work. i have done an app with active scaffold ill see what i did with it and give you an answer

radhames brito wrote:

oh ok i see you cant get the generator to work. i have done an app with
active scaffold ill see what i did with it and give you an answer

Thanks a lot @radhames. I really appreciate your efforts.

im looking at the wiki and there is no rails 3 version of active scaffold!

radhames brito wrote:

im looking at the wiki and there is no rails 3 version of active
scaffold!

Check this: http://github.com/vhochstein/active_scaffold/wiki

What command did you use to install it?

Colin

radhames brito wrote:

im looking at the wiki and there is no rails 3 version of active
scaffold!

Check this: http://github.com/vhochstein/active_scaffold/wiki

What command did you use to install it?

And which folder were you in when you ran it?

Colin Law wrote:

Colin Law wrote:

If there was no response I suspect it did not work. Have you got git installed?
If it did install the plugin you should see it under the vendor dir in
your app (or wherever it goes in Rails 3).

Colin

Colin Law wrote:

I got the command run after cloning the plugin from git and manuallly
moving it to vendor/plugins in the Rails application folder.

Thanks all.