top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Assets path in Rails

+1 vote
284 views

I've put my favicon into app/assets/images and include in my header

The favicon is correctly recognized by the browser, so it works perfectly. When viewing the source code, I see to my surprise that the following HTML code is generated:

Aside from the MIME type (I had expected that rails would generate image/jpeg), what really puzzles me is the path. The file is definitely in /assets/images, not in /assets . How can the browser locate the file?

posted May 31, 2014 by Mandeep Sehgal

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I am using RoR and one of my apps drives the others and stores pictures that the others use.
Both apps are on the same server How do I build a link to the image on the other app?

0 votes

I was reading the docs for primary key on postgresql and I saw that there was a way to add a custom stored procedure that returns a UUID. There is a test case as well that uses a custom uuid generator

https://github.com/rails/rails/blob/650ea5e5cf50d8a**********cf1762922d330a8/activerecord/test/cases/adapters/postgresql/uuid_test.rb#L193

But I was not sure how to to implement this myself. Like in the test case where do I place my_uuid_generator() and how to implement it in my rails application?

+1 vote

Am trying to send email with yahoo mail but it is not working but, with gmail works fine can someone correct me if anything is wrong in my smtp.

    production:
 :address: smtp.yahoo.mail.com
 :port: 587
 :user_name: test@yahoo.com
 :password: test
 :authentication: plain
 :enable_starttls_auto: true
 :domain : test.com
...