RailsCasts Pro episodes are now free!

Learn more or hide this

David Burton's Profile

GitHub User: burtondav

Comments by David Burton

Avatar

ericeche,
Did you ever get a solution?

Avatar

How do you add a :selected to the grouped_collection_select ???

Avatar

I have this working on my local iMac. When I upload to Heroku, the app gets this log when starting up "/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/relation/finder_methods.rb:310:in `find_with_ids': Couldn't find Tenant without an ID (ActiveRecord::RecordNotFound)"

Do I need to do anything special to run this on Heroku?

Avatar

Do you have this in your class? table-striped

Avatar

I suggest you look at your Rails console to see if there is a message showing an error. It's likely a data read error.

Avatar

The following puts each record into a dataTable cell instead of a row:

ruby
def data
    User.current.employee.workgroups.map do |workgroup|
      workgroup.workorders.wonotclosed.map do |workorder|
        [
        link_to(workorder.wonum, workorder),
        h(workorder.parent.try(:wonum)),
        h(workorder.description),
        h(workorder.worequest.try(:subject)),
        h(workorder.client.try(:client_name)),
        h(workorder.woasset.try(:assetnum)),
        h(workorder.type.try(:typecode)),
        h(workorder.priority),
        h(workorder.super.try(:employee_full_name)),
        h(workorder.workgroup.try(:group_name)),
        h(workorder.employee.try(:employee_full_name)),
        h(workorder.wostatus.try(:statuscode))
        ]
      end
    end
  end

Any way to fix?

Avatar

NOOB - Getting error
* executing "sudo -p 'sudo password: ' bash -l -c 'cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/'"
servers: ["50.17.145.140"]
.. ** Failed to connect to 50.17.145.140, retrying
* executing `rubber:_allow_root_ssh'

I believe my credentials are correct.

If I look at the EC2 console it says the private ip is 10.111.63.18

Avatar

NOOB - when I'm creating the EC2 instance, Amazon wants me to select a AMI (stack). Which one do you select?