# Shouldn't this work: RAILS\_ENV.development?

**URL:** <https://www.ruby-forum.com/t/shouldnt-this-work-rails-env-development/147650>\
**Category:** Rails\
**Created:** [September 4, 2008, 12:04am UTC](https://www.ruby-forum.com/t/shouldnt-this-work-rails-env-development/147650 "2008-09-04T00:04:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfredo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@Alfredo](https://www.ruby-forum.com/u/Alfredo)\
**Post date:** [September 4, 2008, 12:04am UTC](https://www.ruby-forum.com/t/shouldnt-this-work-rails-env-development/147650/1 "2008-09-04T00:04:19Z")

</div>

I think some time ago I heard that some method missing functionality  
had been added to the string class so that you could write:

string == ‘mystring’

like this:

string.mystring?

I tried this with Rails 2.1 and it’s either not working or I got the  
syntax wrong… or is this feature only in Edge Rails??
