# Not able to see the the controls and database entries

**URL:** <https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356>\
**Category:** Rails\
**Created:** [March 31, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356 "2009-03-31T13:52:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eeeabhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc79bd/32.png) [@eeeabhi](https://www.ruby-forum.com/u/eeeabhi)\
**Post date:** [March 31, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356/1 "2009-03-31T13:52:13Z")

</div>

Hi am a newbie to RoR. I am starting RoR with Ruby on Rails For Dummies.  
And i am working on RadRails. I have executed the very first program  
Company project (with Employee module and Employee Scafold. I am using  
MYSQL. The number of records are getting incremented (ie inserted in DB)  
But in UI the controls are not visible.

I am attaching the development.log file .Kindly help me figure out what  
the problem is.

---

<div class="post-metadata">

**Author:** ![eeeabhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc79bd/32.png) [@eeeabhi](https://www.ruby-forum.com/u/eeeabhi)\
**Post date:** [March 31, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356/2 "2009-03-31T14:13:46Z")

</div>

On Mar 31, 12:52 pm, Abhisekh J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi am a newbie to RoR. I am starting RoR with Ruby on Rails For Dummies.  
> And i am working on RadRails. I have executed the very first program  
> Company project (with Employee module and Employee Scafold. I am using  
> MYSQL. The number of records are getting incremented (ie inserted in DB)  
> But in UI the controls are not visible.
> 
> I am attaching the development.log file .Kindly help me figure out what  
> the problem is.

The code / templates would be more useful. I suspect the problem is  
that you are expecting rails to create the form based on the columns  
in the database, which it no longer does (as of rails 2)

---

<div class="post-metadata">

**Author:** ![eeeabhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc79bd/32.png) [@eeeabhi](https://www.ruby-forum.com/u/eeeabhi)\
**Post date:** [March 31, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356/3 "2009-03-31T15:00:40Z")

</div>

On Mar 31, 1:22 pm, Abhisekh J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Is there any way of having the auto form generation mechanism sort with  
> the version am having.

If I remember correctly it was extracted into the dynamic scaffolding  
plugin.

When first creating your model you can still generate the appropriate  
form controls by doing something like

ruby script/general scaffold some\_model name:string active:boolean  
etc…

it’s just not introspected from the database

Fred

---

<div class="post-metadata">

**Author:** ![eeeabhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc79bd/32.png) [@eeeabhi](https://www.ruby-forum.com/u/eeeabhi)\
**Post date:** [March 31, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356/4 "2009-03-31T14:22:39Z")

</div>

Thanks Cheung for the reply. I am having the following versions:

gem 1.3.1  
rails 2.3.2  
ruby 1.8.6  
mysql 5.0.77

And the fact is after adding the employees record by clicking the Add  
button the records are inserted in the table successfully with the  
default values.

Is there any way of having the auto form generation mechanism sort with  
the version am having.
