On 17 April 2012 15:06, amvis <vgrkrish...@gmail.com> wrote:
> i have one controller
> class UsersController < ApplicationController
>
>   def home
>    @business_name = return_value["business"]
>    puts "business_name.....#{@business_name}"
>   end
> end
>
> and in home folder i have one view branch.html.erb.....My problem is, when i
> display this <%=@business_name %> in branch.html.erb, i didn't get
> anything...
> What is the issue in this view....?

Does the puts command show a name?

Change the display line to something like
<%= "Name = #{@business_name}" %>
which will let you check that the line is being shown.

Have a look at the html to see if there is anything there where
business_name should be displayed.  View > Page Source or similar in
your browser?

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to