Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Heroku pictures

Hey guys,

So I'm trying to get my pictures to upload on Heroku and have been unsuccessful. I have changed the

config.serve_static_assets = false

to

config.serve_static_assets = true

I have also looked through the heroku manual and it is very unclear about this issue at least to me.

Does anyone have an idea how to get it to work?

Thanks!

What errors are you getting?

The only error so far is when I run

"rake assets:precompile RAILS_ENV=production"

it says rake aborted!

ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter

I'm currently reading about using add-ons like carrierwave and Cloudinary. Is that the way to go?

Also here is a link to my repo,

https://github.com/MikeForRails/Galaxy_App

Thanks!

Not too sure about the add ons. Does this stackoverflow solution fix your issue?

Haha unfortunately they made it worse. So it that a no to the add ons or a I don't know?

Yeah I have no idea.

It's an I don't know about the add-ons. Have you contacted Heroku support?

Lol! Genius. I'll do that thanks man.

Hey actually I just found this!

https://devcenter.heroku.com/articles/rails-4-asset-pipeline

I'lll give this a try first then call thanks for your help Adam!!!

Hey Adam,

Still can't figure it out... Is there any other suggestions?

2 Answers

Could this have anything to do with it:

ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter

Hey Artem,

I actually don't know? I gave up and deleted it lol!... I think I am suppose to put my assets in the public folder... Not sure if that will work but I am going to try it later tonight so will see.

Does that sound like a solution?

Thanks for answering man!