None of your views have any fields - just links for Create, Edit,
Back, New, etc.

It looks like you might have generated scaffolding without specifying
any field attributes.

On Jun 3, 8:25 am, Asanka Mawilmada <[email protected]>
wrote:
> Hi Ar Chron
>
> first of all thank you very much for your reply.
>
> i followed many examples all seems to be pretty much same. here is 
> onehttp://tv.aptana.com/videos/introduction-to-radrails?ref=learn&refId=6
>
> index.html.erb
> <h1>Listing employees</h1>
> <table>
>   <tr>
>   </tr>
> <% @employees.each do |employee| %>
>   <tr>
>     <td><%= link_to 'Show', employee %></td>
>     <td><%= link_to 'Edit', edit_employee_path(employee) %></td>
>     <td><%= link_to 'Destroy', employee, :confirm => 'Are you sure?',
> :method => :delete %></td>
>   </tr>
> <% end %>
> </table>
> <br />
> <%= link_to 'New employee', new_employee_path %>
>
> new.html.erb
> <h1>New employee</h1>
> <% form_for(@employee) do |f| %>
>   <%= f.error_messages %>
>   <p>
>     <%= f.submit 'Create' %>
>   </p>
> <% end %>
> <%= link_to 'Back', employees_path %>
>
> show.html.erb
> <%= link_to 'Edit', edit_employee_path(@employee) %> |
> <%= link_to 'Back', employees_path %>
>
> edit.html.erb
> <h1>Editing employee</h1>
>
> <% form_for(@employee) do |f| %>
>   <%= f.error_messages %>
>
>   <p>
>     <%= f.submit 'Update' %>
>   </p>
> <% end %>
>
> <%= link_to 'Show', @employee %> |
> <%= link_to 'Back', employees_path %>
>
> i have also attached the project for your reference.
>
> i am new to RoR so i really appreciate you help to get stuff started.
>
> Thank you Again
>
> Attachments:http://www.ruby-forum.com/attachment/3777/test.zip
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to