# How to Install Substruct in Eclipse?

**URL:** <https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987>\
**Category:** Rails\
**Created:** [December 2, 2006, 6:21am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987 "2006-12-02T06:21:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 2, 2006, 6:21am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/1 "2006-12-02T06:21:58Z")

</div>

Env: Windows XP, Eclipse 3.2.1, RadRails 0.7.1, Subclipse 1.0.3

Is there a How to install Substruct in Eclipse?

Checkout from SVN  
Installing Substruct  
[http://dev.subimage.com/projects/substruct/wiki/InstallingSubstruct](http://dev.subimage.com/projects/substruct/wiki/InstallingSubstruct)  
Step 5 the vendor/plugins folder is empty

1. Initialize the database tables using the following unix commands.  
Translate to DOS if you need to.

This loads the initial schema, updates to the latest using migrations,  
then finally loads authority data into the DB.

cp vendor/plugins/substruct/db/\* db/  
chmod +w db/schema.rb  
rake db:schema:load  
rake load\_authority\_data  
rake db:migrate:engines:substruct  
rake db:migrate:engines:substruct RAILS\_ENV=‘production’

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 2, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/2 "2006-12-02T21:40:19Z")

</div>

No, and I don’t know why you would want to install Substruct from  
Eclipse…

On 12/1/06, Dave K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> rake db:migrate:engines:substruct  
> rake db:migrate:engines:substruct RAILS\_ENV=‘production’
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
seth at subimage interactive  
[http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 7:24am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/3 "2006-12-03T07:24:47Z")

</div>

I’m new to Ruby and Eclipse is the IDE I use.  
When learning a new Java technology like Hibernate, Axis, Struts I  
deploy an example war file in Eclipse to help reduce the learning curve.  
What strategy would you suggest for Substruct?

Subimage Interactive wrote:

> No, and I don’t know why you would want to install Substruct from  
> Eclipse…
> 
> On 12/1/06, Dave K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > rake db:migrate:engines:substruct  
> > rake db:migrate:engines:substruct RAILS\_ENV=‘production’
> > 
> > –  
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> seth at subimage interactive  
> [http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 8:30am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/4 "2006-12-03T08:30:08Z")

</div>

Shows how much you know…

If you install the recommended way, from the wiki, you will get  
Substruct  
locked to a constant, stable version of Rails.

There really is no reason at all to upgrade rails whenever a new version  
comes out…unless it’s a security patch FYI.

On 12/2/06, Bala P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Substruct is implemented as a Rails engine. Engines are not  
> recommended approach for reuse. If you are using it for learning  
> purposes, it might be ok. Otherwise you must be aware that plugins are  
> favored over engines. When newer releases of Rails comes out it might  
> break Substruct.
> 
> >

–  
seth at subimage interactive  
[http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 7:52am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/5 "2006-12-03T07:52:05Z")

</div>

Substruct is implemented as a Rails engine. Engines are not  
recommended approach for reuse. If you are using it for learning  
purposes, it might be ok. Otherwise you must be aware that plugins are  
favored over engines. When newer releases of Rails comes out it might  
break Substruct.

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/6 "2006-12-03T21:09:28Z")

</div>

No. You’ll have to import it yourself.

PS: I recommend TextMate on Mac or UltraEdit (maybe Komodo) on PC for  
Rails…Eclipse and IDE’s are overkill imho.

On 12/3/06, Dave K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Substruct  
> > locked to a constant, stable version of Rails.
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
seth at subimage interactive  
[http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/7 "2006-12-03T22:41:35Z")

</div>

PS: If you don’t know know much about engines (and it seems you don’t)  
please go read this.

[http://rails-engines.org/news/2006/08/30/apparently-engines-are-still-evil/](http://rails-engines.org/news/2006/08/30/apparently-engines-are-still-evil/)

On 12/2/06, Bala P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Substruct is implemented as a Rails engine. Engines are not  
> recommended approach for reuse. If you are using it for learning  
> purposes, it might be ok. Otherwise you must be aware that plugins are  
> favored over engines. When newer releases of Rails comes out it might  
> break Substruct.
> 
> >

–  
seth at subimage interactive  
[http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)

---

<div class="post-metadata">

**Author:** ![davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@davis](https://www.ruby-forum.com/u/davis)\
**Post date:** [December 3, 2006, 9:14am UTC](https://www.ruby-forum.com/t/how-to-install-substruct-in-eclipse/77987/8 "2006-12-03T09:14:23Z")

</div>

1. install Substruct from the wiki
2. use Eclipse/RadRails to make modifications…  
Is the existng Substruct project somehow imported into Eclipse?

Subimage Interactive wrote:

> Shows how much you know…
> 
> If you install the recommended way, from the wiki, you will get  
> Substruct  
> locked to a constant, stable version of Rails.
