I am having some problems in printing some data through the controller in Rails
===

I am new on Rails. I want that if a person enters "entity1" on the form(or some other entity which is present in a list called ENTITIES in the code below), the form should display its relationships. The task to check whether the entity is contained in the list of entities is successful, i cant understand how to print the relationships which are in has called RELATION_SHIPS. I tried 
 #puts EntityList::RELATION_SHIPS[params[:user][:entity_name]] 
but it is giving me an error saying that template is missing or RELATION_SHIPS is unrecognised. How do i solve this? Please help!
 

#users_controller.rb

class EntityList

  ENTITIES = ['entity1','entity2','entity3']
  #entity1 = {:name => 'Entity One',:position => 1 :relationships => 'entity2', 'entity4'}

  RELATION_SHIPS = {:entity1 => "entity2", :entity2 => "entity3"}
end

class UsersController < ApplicationController

  layout 'admin'
  #require File.expand_path('././myconfig')  #=> C:/ruby/require/expand_path/ok.rb loaded

  def new
    @user = User.new
  end


  def create

    if EntityList::ENTITIES.include?(params[:user][:entity_name])

      flash[:notice] = "The entity you entered is valid!!"

      redirect_to(:action => "helloworld")

      #puts EntityList::RELATION_SHIPS[params[:user][:entity_name]]

    else
      redirect_to(:action => "SorryPage")
    end
  end

end
