# Replace default action "index" with another one?

**URL:** <https://www.ruby-forum.com/t/replace-default-action-index-with-another-one/120903>\
**Category:** Rails\
**Created:** [November 21, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/replace-default-action-index-with-another-one/120903 "2007-11-21T16:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 21, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/replace-default-action-index-with-another-one/120903/1 "2007-11-21T16:44:54Z")

</div>

Hi all

Is there a way to make Rails load another action than “index” when no  
action is specified? Something like

MyController  
default\_action :some\_action

def some\_action  
…  
end  
end

Thanks for help 🙂

Josh

PS: I know the trick with just calling and rendering another action  
within index() already… It’s not what I’m looking for. 😉
