Ruby on Rails- Bolt-Network

I keep getting a Sass::SyntaxError when I try to start the Rails server
I’ve reset the project three times, followed the video to the letter each time, and still keep getting it.
The exact error is: ```
Invalid CSS after “…image:url(https”: expected “)”, was “://content.code…”
(in /home/ccuser/workspace/learn-rails_bolt-network-2/bolt-network/app/assets/stylesheets/pages.css.scss:2)

background-image:url(https://content.codecademy.com/projects/bolt-network/diagmonds_@2X.png)

I’m not really sure why I’m getting the error, I’m 99% sure I’ve done everything right, and the things like the controller and the routes wouldn’t cause a CSS syntax error, would they?

Seems like you’re missing quotation marks around the url.
Also I’m imagining this is css so there’d be other syntax housekeeping

.some_class_or_element {
  /*note the semicolon at the end of the line*/
  background-image:url("https://content.codecademy.com/projects/bolt-network/diagmonds_@2X.png"); 
}

It was the semicolon at the end! I don’t know why there wasn’t one, I haven’t dealt with css in a long time so it took me a while to catch it, thanks for the comment pointing me in the right direction.

I’ll report a bug with the lesson and hopefully it’ll get fixed so as to not trip up anyone else

1 Like

I haven’t done css in so long I thought this was ruby code for half a minute :rofl: :rofl: :rofl:

Glad that worked!