# Ruby on Rails(Segmentation)

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-segmentation/122623>\
**Category:** Rails\
**Created:** [December 10, 2007, 8:00am UTC](https://www.ruby-forum.com/t/ruby-on-rails-segmentation/122623 "2007-12-10T08:00:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amulyab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@amulyab](https://www.ruby-forum.com/u/amulyab)\
**Post date:** [December 10, 2007, 8:00am UTC](https://www.ruby-forum.com/t/ruby-on-rails-segmentation/122623/1 "2007-12-10T08:00:09Z")

</div>

## There is a piece of source code.On selection of some part of source code and click on button say"Create Segment".Segment should be created. Structure for this is: /_Start Segment1_/ {

* * *

* * *

}  
/_End Segment1_/

On clicking the create segment button, for the selected text start and  
end segment should be created.Please help me to overcome this problem.
