Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NoMethodError in Homepage#index
- Showing /home/oleg/develop/kassi/app/views/homepage/index.haml where line #5 raised:
- You have a nil object when you didn't expect it!
- You might have expected an instance of Array.
- The error occurred while evaluating nil.include?
- Extracted source (around line #5):
- 2: #teaser_left
- 3: %h1= t(".lend_rent_help_carpool")
- 4: %p
- 5: - community_name = (@current_community.name.include?(" ") && I18n.locale.to_s.eql?("fi")) ? "#{@current_community.name} " : @current_community.name
- 6: = render :file => community_file("teaser_welcome_text", false), :locals => {:community_name => community_name}
- 7: #teaser_right
- 8: #teaser_button_container
- Rails.root: /home/oleg/develop/kassi
- Application Trace | Framework Trace | Full Trace
- app/views/homepage/index.haml:5:in `_app_views_homepage_index_haml___187044614_95966080__1021114221'
- Request
- Parameters:
- {"page"=>1}
- Show session dump
- return_to_content: "/"
- session_id: "a9fb1f101c136244e8e3d053b58b84ae"
- Show env dump
- CONTENT_LENGTH: "0"
- DOCUMENT_ROOT: "/home/oleg/develop/kassi/public"
- HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
- HTTP_ACCEPT_CHARSET: "windows-1251,utf-8;q=0.7,*;q=0.7"
- HTTP_ACCEPT_ENCODING: "gzip, deflate"
- HTTP_ACCEPT_LANGUAGE: "ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3"
- HTTP_CONNECTION: "keep-alive"
- HTTP_DNT: "1"
- HTTP_HOST: "bryansk.kassi.local:3000"
- HTTP_USER_AGENT: "Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0"
- PASSENGER_APP_SPAWNER_IDLE_TIME: "-1"
- PASSENGER_APP_TYPE: "rack"
- PASSENGER_CONNECT_PASSWORD: "8ndbz9dLemS2YX9XoG0scxu9ms9yKYfi6tTAM7STE00"
- PASSENGER_DEBUGGER: "false"
- PASSENGER_ENVIRONMENT: "development"
- PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME: "-1"
- PASSENGER_FRIENDLY_ERROR_PAGES: "true"
- PASSENGER_GROUP: ""
- PASSENGER_MIN_INSTANCES: "1"
- PASSENGER_SHOW_VERSION_IN_HEADER: "true"
- PASSENGER_SPAWN_METHOD: "smart-lv2"
- PASSENGER_USER: ""
- PASSENGER_USE_GLOBAL_QUEUE: "true"
- PATH_INFO: "/"
- QUERY_STRING: ""
- REMOTE_ADDR: "127.0.0.1"
- REMOTE_PORT: "47100"
- REQUEST_METHOD: "GET"
- REQUEST_URI: "/"
- SCGI: "1"
- SCRIPT_NAME: ""
- SERVER_ADDR: "127.0.0.1"
- SERVER_NAME: "_"
- SERVER_PORT: "3000"
- SERVER_PROTOCOL: "HTTP/1.1"
- SERVER_SOFTWARE: "nginx/1.0.0"
- UNION_STATION_SUPPORT: "false"
- _: "_"
- action_controller.instance: #<HomepageController:0xa271938 @action_has_layout=true, @view_context_class=nil, @_headers={"Content-Type"=>"text/html"}, @_status=200, @_response=#<ActionDispatch::Response:0xa271564 @writer=#<Proc:0xa2713ac@/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_dispatch/http/response.rb:44 (lambda)>, @block=nil, @length=0, @header={}, @status=200, @body=[], @cookie=[], @sending_file=false, @blank=false, @cache_control={}, @etag=nil, @request=#<ActionDispatch::Request:0xa271578 @env={"CONTENT_LENGTH"=>"0", "DOCUMENT_ROOT"=>"/home/oleg/develop/kassi/public", "SCRIPT_NAME"=>"", "PATH_INFO"=>"/", "REQUEST_URI"=>"/", "PASSENGER_USE_GLOBAL_QUEUE"=>"true", "PASSENGER_FRIENDLY_ERROR_PAGES"=>"true", "UNION_STATION_SUPPORT"=>"false", "PASSENGER_DEBUGGER"=>"false", "PASSENGER_SHOW_VERSION_IN_HEADER"=>"true", "PASSENGER_ENVIRONMENT"=>"development", "PASSENGER_SPAWN_METHOD"=>"smart-lv2", "PASSENGER_USER"=>"", "PASSENGER_GROUP"=>"", "PASSENGER_APP_TYPE"=>"rack", "PASSENGER_MIN_INSTANCES"=>"1", "PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME"=>"-1", "PASSENGER_APP_SPAWNER_IDLE_TIME"=>"-1", "SCGI"=>"1", "QUERY_STRING"=>"", "REQUEST_METHOD"=>"GET", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"nginx/1.0.0", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_PORT"=>"47100", "SERVER_ADDR"=>"127.0.0.1", "SERVER_PORT"=>"3000", "SERVER_NAME"=>"_", "HTTP_HOST"=>"bryansk.kassi.local:3000", "HTTP_USER_AGENT"=>"Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "HTTP_ACCEPT_LANGUAGE"=>"ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3", "HTTP_ACCEPT_ENCODING"=>"gzip, deflate", "HTTP_ACCEPT_CHARSET"=>"windows-1251,utf-8;q=0.7,*;q=0.7", "HTTP_DNT"=>"1", "HTTP_CONNECTION"=>"keep-alive", "_"=>"_", "PASSENGER_CONNECT_PASSWORD"=>"8ndbz9dLemS2YX9XoG0scxu9ms9yKYfi6tTAM7STE00", "rack.version"=>[1, 0], "rack.input"=>#<PhusionPassenger::Utils::RewindableInput:0xb893158 @io=#<PhusionPassenger::Utils::UnseekableSocket:0xb82543c @socket=#<UNIXSocket:fd 6>>, @rewindable_io=nil, @unlinked=false>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>true, "rack.run_once"=>false, "rack.url_scheme"=>"http", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"f34e4e47b531d0d4b7eec395b8652e901720e2cbdcd1439b91134f9c6e4f1f8b72704599b33a9747411d9e60f4c40ebb984c73b4dbeb158eb1df1cfe65c90928", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae", "return_to_content"=>"/"}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>1 year, :secure=>false, :httponly=>true, :id=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.request.path_parameters"=>{:controller=>"homepage", :action=>"index"}, "action_controller.instance"=>#<HomepageController:0xa271938 ...>, "action_dispatch.request.content_type"=>nil, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"controller"=>"homepage", "action"=>"index", "page"=>1}, "action_dispatch.request.formats"=>[text/html], "hoptoad.error_id"=>nil}, @fullpath="/", @request_method="GET", @filtered_parameters={"controller"=>"homepage", "action"=>"index"}, @method="GET">>, @_request=#<ActionDispatch::Request:0xa271578 @env={"CONTENT_LENGTH"=>"0", "DOCUMENT_ROOT"=>"/home/oleg/develop/kassi/public", "SCRIPT_NAME"=>"", "PATH_INFO"=>"/", "REQUEST_URI"=>"/", "PASSENGER_USE_GLOBAL_QUEUE"=>"true", "PASSENGER_FRIENDLY_ERROR_PAGES"=>"true", "UNION_STATION_SUPPORT"=>"false", "PASSENGER_DEBUGGER"=>"false", "PASSENGER_SHOW_VERSION_IN_HEADER"=>"true", "PASSENGER_ENVIRONMENT"=>"development", "PASSENGER_SPAWN_METHOD"=>"smart-lv2", "PASSENGER_USER"=>"", "PASSENGER_GROUP"=>"", "PASSENGER_APP_TYPE"=>"rack", "PASSENGER_MIN_INSTANCES"=>"1", "PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME"=>"-1", "PASSENGER_APP_SPAWNER_IDLE_TIME"=>"-1", "SCGI"=>"1", "QUERY_STRING"=>"", "REQUEST_METHOD"=>"GET", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"nginx/1.0.0", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_PORT"=>"47100", "SERVER_ADDR"=>"127.0.0.1", "SERVER_PORT"=>"3000", "SERVER_NAME"=>"_", "HTTP_HOST"=>"bryansk.kassi.local:3000", "HTTP_USER_AGENT"=>"Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "HTTP_ACCEPT_LANGUAGE"=>"ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3", "HTTP_ACCEPT_ENCODING"=>"gzip, deflate", "HTTP_ACCEPT_CHARSET"=>"windows-1251,utf-8;q=0.7,*;q=0.7", "HTTP_DNT"=>"1", "HTTP_CONNECTION"=>"keep-alive", "_"=>"_", "PASSENGER_CONNECT_PASSWORD"=>"8ndbz9dLemS2YX9XoG0scxu9ms9yKYfi6tTAM7STE00", "rack.version"=>[1, 0], "rack.input"=>#<PhusionPassenger::Utils::RewindableInput:0xb893158 @io=#<PhusionPassenger::Utils::UnseekableSocket:0xb82543c @socket=#<UNIXSocket:fd 6>>, @rewindable_io=nil, @unlinked=false>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>true, "rack.run_once"=>false, "rack.url_scheme"=>"http", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"f34e4e47b531d0d4b7eec395b8652e901720e2cbdcd1439b91134f9c6e4f1f8b72704599b33a9747411d9e60f4c40ebb984c73b4dbeb158eb1df1cfe65c90928", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae", "return_to_content"=>"/"}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>1 year, :secure=>false, :httponly=>true, :id=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.request.path_parameters"=>{:controller=>"homepage", :action=>"index"}, "action_controller.instance"=>#<HomepageController:0xa271938 ...>, "action_dispatch.request.content_type"=>nil, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"controller"=>"homepage", "action"=>"index", "page"=>1}, "action_dispatch.request.formats"=>[text/html], "hoptoad.error_id"=>nil}, @fullpath="/", @request_method="GET", @filtered_parameters={"controller"=>"homepage", "action"=>"index"}, @method="GET">, @_env={"CONTENT_LENGTH"=>"0", "DOCUMENT_ROOT"=>"/home/oleg/develop/kassi/public", "SCRIPT_NAME"=>"", "PATH_INFO"=>"/", "REQUEST_URI"=>"/", "PASSENGER_USE_GLOBAL_QUEUE"=>"true", "PASSENGER_FRIENDLY_ERROR_PAGES"=>"true", "UNION_STATION_SUPPORT"=>"false", "PASSENGER_DEBUGGER"=>"false", "PASSENGER_SHOW_VERSION_IN_HEADER"=>"true", "PASSENGER_ENVIRONMENT"=>"development", "PASSENGER_SPAWN_METHOD"=>"smart-lv2", "PASSENGER_USER"=>"", "PASSENGER_GROUP"=>"", "PASSENGER_APP_TYPE"=>"rack", "PASSENGER_MIN_INSTANCES"=>"1", "PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME"=>"-1", "PASSENGER_APP_SPAWNER_IDLE_TIME"=>"-1", "SCGI"=>"1", "QUERY_STRING"=>"", "REQUEST_METHOD"=>"GET", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"nginx/1.0.0", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_PORT"=>"47100", "SERVER_ADDR"=>"127.0.0.1", "SERVER_PORT"=>"3000", "SERVER_NAME"=>"_", "HTTP_HOST"=>"bryansk.kassi.local:3000", "HTTP_USER_AGENT"=>"Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "HTTP_ACCEPT_LANGUAGE"=>"ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3", "HTTP_ACCEPT_ENCODING"=>"gzip, deflate", "HTTP_ACCEPT_CHARSET"=>"windows-1251,utf-8;q=0.7,*;q=0.7", "HTTP_DNT"=>"1", "HTTP_CONNECTION"=>"keep-alive", "_"=>"_", "PASSENGER_CONNECT_PASSWORD"=>"8ndbz9dLemS2YX9XoG0scxu9ms9yKYfi6tTAM7STE00", "rack.version"=>[1, 0], "rack.input"=>#<PhusionPassenger::Utils::RewindableInput:0xb893158 @io=#<PhusionPassenger::Utils::UnseekableSocket:0xb82543c @socket=#<UNIXSocket:fd 6>>, @rewindable_io=nil, @unlinked=false>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>true, "rack.run_once"=>false, "rack.url_scheme"=>"http", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"f34e4e47b531d0d4b7eec395b8652e901720e2cbdcd1439b91134f9c6e4f1f8b72704599b33a9747411d9e60f4c40ebb984c73b4dbeb158eb1df1cfe65c90928", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae", "return_to_content"=>"/"}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>1 year, :secure=>false, :httponly=>true, :id=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae"}, "action_dispatch.request.path_parameters"=>{:controller=>"homepage", :action=>"index"}, "action_controller.instance"=>#<HomepageController:0xa271938 ...>, "action_dispatch.request.content_type"=>nil, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"controller"=>"homepage", "action"=>"index", "page"=>1}, "action_dispatch.request.formats"=>[text/html], "hoptoad.error_id"=>nil}, @lookup_context=#<ActionView::LookupContext:0xa26f868 @details_key=#<ActionView::LookupContext::DetailsKey:0xba80c2c @hash=30337609>, @details={:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :haml], :formats=>[:html], :locale=>[:en, :en]}, @skip_default_locale=false, @frozen_formats=true, @view_paths=[/home/oleg/develop/kassi/app/views, /home/oleg/develop/kassi/vendor/plugins/i18n_action_mailer/app/views, /home/oleg/develop/kassi/vendor/plugins/dynamic_form/app/views]>, @_action_name="index", @_response_body=nil, @_config={}, @current_community=#<Community id: 1, name: nil, domain: "bryansk", created_at: nil, updated_at: nil, settings: nil, consent: "KASSI_FI1.0", email_admins_about_new_members: false, use_fb_like: false, real_name_required: true, feedback_to_admin: false>, @_params={"controller"=>"homepage", "action"=>"index", "page"=>1}, @return_to="", @events=["Event 1", "Event 2", "Event 3"], @requests=[], @offers=[], @private_listings={"request"=>0, "offer"=>0}>
- action_dispatch.cookies: {}
- action_dispatch.parameter_filter: [:password]
- action_dispatch.remote_ip: 127.0.0.1
- action_dispatch.request.content_type: nil
- action_dispatch.request.formats: [text/html]
- action_dispatch.request.parameters: {"controller"=>"homepage", "action"=>"index", "page"=>1}
- action_dispatch.request.path_parameters: {:controller=>"homepage", :action=>"index"}
- action_dispatch.request.query_parameters: {}
- action_dispatch.request.request_parameters: {}
- action_dispatch.request.unsigned_session_cookie: {"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae"}
- action_dispatch.secret_token: "f34e4e47b531d0d4b7eec395b8652e901720e2cbdcd1439b91134f9c6e4f1f8b72704599b33a9747411d9e60f4c40ebb984c73b4dbeb158eb1df1cfe65c90928"
- hoptoad.error_id: nil
- rack.errors: #<IO:<STDERR>>
- rack.input: #<PhusionPassenger::Utils::RewindableInput:0xb893158 @io=#<PhusionPassenger::Utils::UnseekableSocket:0xb82543c @socket=#<UNIXSocket:fd 6>>, @rewindable_io=nil, @unlinked=false>
- rack.multiprocess: true
- rack.multithread: false
- rack.request.query_hash: {}
- rack.request.query_string: ""
- rack.run_once: false
- rack.session: {"session_id"=>"a9fb1f101c136244e8e3d053b58b84ae", "return_to_content"=>"/"}
- rack.session.options: {:path=>"/", :domain=>nil, :expire_after=>1 year, :secure=>false, :httponly=>true, :id=>"a9fb1f101c136244e8e3d053b58b84ae"}
- rack.url_scheme: "http"
- rack.version: [1, 0]
- Response
- Headers:
- None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement