0

I am running a tutorial to create my first app on Ruby on Rails and find the following issue:

ArgumentError in FacilitiesController#index

bad argument (expected URI object or URI string) Rails.root: /Users/andreucasadella/rails_projects/DF12-Demo-master

Application Trace | Framework Trace | Full Trace app/controllers/facilities_controller.rb:7:in `index' Request

Parameters:

None Show session dump

Show env dump

Response

Headers:

None

Lut
  • 1,363
  • 1
  • 14
  • 30
  • What is on this line? app/controllers/facilities_controller.rb:7 – cih Jan 07 '13 at 22:47
  • @facilities = Facility__c.all – Lut Jan 07 '13 at 22:51
  • Try this @facilities = Facility.all – cih Jan 07 '13 at 22:53
  • I just tried but did not work. Facility__c is the API object name in database.com so I am pretty sure it has to be @facilities = Facility__c.all – Lut Jan 07 '13 at 22:56
  • This is pretty much impossible to answer without some more context – Frederick Cheung Jan 07 '13 at 22:57
  • I am following this tutorial: http://events.developerforce.com/conferences/dreamforce?session=10701 http://www.youtube.com/watch?feature=player_embedded&v=XHlD7Rqz7K4 This is the github project: I have not change anything at all: https://github.com/jeffdonthemic/DF12-Demo – Lut Jan 07 '13 at 22:59

0 Answers0