Hello,
My development environment is on the MacOS 10.4.10, with Ruby 1.8.6
and Rails 1.2.3.
My production environment is on Ubuntu 7.04, with Ruby 1.8.5 and Rails
1.2.3.
My application works perfectly fine on the development environment.
However, the sessions do not seems to work on the production
environment. When I add an item to the cart it crashes with the
message below. The puzzling thing is that the IP XX.XX.68.134 is the
IP of my development environment. How come is controller or session
pointing to that IP and not the production server IP ?
Processing AirportselectionController#add_to_cart (for XX.XX.68.134 at
2007-07-21 09:03:21) [POST]
Session ID: 50ac1829f233b9e1505783cfff00fd9d
Parameters: {"commit"=>"Select",
"airport_id"=>"ROA",
"action"=>"add_to_cart",
"controller"=>"airportselection"}
Rendering airportselection/add_to_cart
ActionView::TemplateError (undefined method `airport_name'' for
nil:NilClass) on line #2 of app/views/airportselection/
_cart_item.rhtml:
1: <tr class="<%= cycle(''oddrows'',
''evenrows'')%>">
2: <td><%= h(cart_item.name) %> (<%= h(cart_item.airport_id)
%>)</
td>
3: <td
class="drivingtimecolumn"><%h(convert_to_hh_mm(cart_item.drivingtime))%></td>
4: <td class="selectcolumn">
5: <% form_remote_tag :url => { :action
=> :remove_from_cart, :airport_id => cart_item.airport_id } do %>
#{RAILS_ROOT}/app/models/cart_item.rb:15:in `name''
#{RAILS_ROOT}/app/views/airportselection/_cart_item.rhtml:2:in
`_run_rhtml_47app47views47airportselection47_cart_item46rhtml''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:326:in `send''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:326:in `compile_and_render_template''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:301:in `render_template''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:260:in `render_file''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:275:in `render''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
partials.rb:59:in `render_partial''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
action_controller/benchmarking.rb:30:in `benchmark''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
partials.rb:58:in `render_partial''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
partials.rb:73:in `render_partial_collection''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
base.rb:518:in `each_with_index''
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---