# \--skip-model

**URL:** <https://www.ruby-forum.com/t/skip-model/191771>\
**Category:** Rails\
**Created:** [July 18, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/skip-model/191771 "2010-07-18T12:48:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/skip-model/191771/1 "2010-07-18T12:48:00Z")

</div>

I watching this case from Railscasts regarding Authlogic:

> **[\#160 Authlogic - RailsCasts](http://railscasts.com/episodes/160-authlogic)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

At 7:44 of the cast, it creates a user\_session as follows:

script/generate nifty\_scaffold user\_session --skip-model username:string  
password:string

But, when I use scaffold instead of “nifty\_scaffold” which I think is  
created by to the author, I get the following message:

invalid option: --skip-model

So, the author by this command was trying to skip creating the model. Is  
this a command that Rails originally uses to skip a model, or has to do  
with nifty\_scaffold?

How can I skip creating a model?

Thamks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/skip-model/191771/2 "2010-07-18T13:09:00Z")

</div>

Hi Abder,

You need to install the nifty-generators gem.

gem install nifty-generators

All the best,

Fidel.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 1:17pm UTC](https://www.ruby-forum.com/t/skip-model/191771/3 "2010-07-18T13:17:43Z")

</div>

Fidel V. wrote:

> Hi Abder,
> 
> You need to install the nifty-generators gem.
> 
> gem install nifty-generators
> 
> All the best,
> 
> Fidel.

Thanks Fidel. Yes, I did install it, but want to use the normal  
scaffold. Is there a way to skip creating the model?

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/skip-model/191771/4 "2010-07-18T15:03:08Z")

</div>

Hi Abder,

I may be wrong, but I think that is a feature of the nifty\_scaffold  
only. I have tried with the normal scaffold, and I couldn’t find  
anything similar in the documentation. So, I guess that you can’t skip  
the model using the normal scaffold. I think that the normal way is  
the create a controller and add the code manually, or use Ryan’s  
nifty-generators. This is the one I use now.

Maybe others with more experience may advise further.

Regards,

Fidel.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/skip-model/191771/5 "2010-07-18T15:48:11Z")

</div>

Fidel V. wrote:

> Hi Abder,
> 
> I may be wrong, but I think that is a feature of the nifty\_scaffold  
> only. I have tried with the normal scaffold, and I couldn’t find  
> anything similar in the documentation. So, I guess that you can’t skip  
> the model using the normal scaffold. I think that the normal way is  
> the create a controller and add the code manually, or use Ryan’s  
> nifty-generators. This is the one I use now.
> 
> Maybe others with more experience may advise further.
> 
> Regards,
> 
> Fidel.

Thanks a lot Fidel.
