# Beginner views

**URL:** <https://www.ruby-forum.com/t/beginner-views/180533>\
**Category:** Rails\
**Created:** [December 21, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/beginner-views/180533 "2009-12-21T13:19:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@Manus](https://www.ruby-forum.com/u/Manus)\
**Post date:** [December 21, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/beginner-views/180533/1 "2009-12-21T13:19:39Z")

</div>

Hey!

I’m a bit new to Rails and I wonder how one render both the new  
controller and the index on the same page.  
For example:

# Guestbook
(new) #post a new entry (index) #showing all posts

I do not want to go to a separate new page.

Thank you for the time!

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Manus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@Manus](https://www.ruby-forum.com/u/Manus)\
**Post date:** [December 21, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/beginner-views/180533/2 "2009-12-21T14:29:53Z")

</div>

2009/12/21 Manus [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I do not want to go to a separate new page.  
> There is nothing stopping you showing a form for entering a new record  
> on the same page as the index. The view erb file merely has to show  
> the form and the index. Use partials for the two sections so you can  
> use the same partials individually if you want just one or the other.

Colin

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Manus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@Manus](https://www.ruby-forum.com/u/Manus)\
**Post date:** [December 21, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/beginner-views/180533/3 "2009-12-21T16:02:23Z")

</div>

Okej! I suspected it would be done that way.

Thank you for the time once again!

On Dec 21, 2:24 pm, Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > (index) #showing all posts
> 
> > I do not want to go to a separate new page.
> 
> There is nothing stopping you showing a form for entering a new record  
> on the same page as the index. The view erb file merely has to show  
> the form and the index. Use partials for the two sections so you can  
> use the same partials individually if you want just one or the other.
> 
> Colin

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
