Topic: Instance Variable not printing in the view

All.,

I am new to rails and i am just trying to print an instance variable in the view whose value i set in the controller. it does not diplay the value. It does work on one machine and not on another one. Can someone tell me what i could be missing. thanks. - AB

Re: Instance Variable not printing in the view

Can you post the code from your controller and view? They should look like this:

post_controller.rb
==================
def index
  @msg = "a message"
end

index.rhtml
===========
<%= @msg %>