Problem with bad favicon.ico GETs after I add a resource #198

Closed
hackternoon opened this Issue Apr 20, 2012 · 6 comments

Comments

Projects
None yet
5 participants
@hackternoon

Hello World,

I just started using twitter-bootstrap-rails yesterday.

I bundled it into my Rails App and both behaved well.

After I installed Devise 2.0.4 I added a resource called 'links'.

I associated the links resource to User so a User has_many :links.

Then on my laptop, My Rails App started receiving strange GETs for favicon.ico.

For example,
Here is a GET I see when I send a GET to /links/2/edit

Started GET "/links/2/images/favicon.ico" for 127.0.0.1 at 2012-04-20 09:11:24 +0100

ActionController::RoutingError (No route matches [GET] "/links/2/images/favicon.ico")

Currently I lack the time to drill down into this interesting problem.

I suspect though it is related to twitter-bootstrap-rails.

If you find the problem interesting, you will find the code at URL below.

https://github.com/hackternoon/mongo4us/tree/z3_2012_0419

Also note that I tried this shell command to make the links bootstrap-themed:

rails g bootstrap:themed links

That shell command did not solve the problem.

Also note that the bug may reside outside twitter-bootstrap-rails.

If that is the case, just close this issue.

Also note that I use Ruby 1.9.2 instead of 1.9.3 (To avoid bugs in heroku db:push)

-- Dan at bot4 dot us

@mattmenefee

This comment has been minimized.

Show comment
Hide comment
@mattmenefee

mattmenefee May 9, 2012

Did you figure out what was causing this?

Did you figure out what was causing this?

@hackternoon

This comment has been minimized.

Show comment
Hide comment
@hackternoon

hackternoon May 12, 2012

No, the cause is still a mystery, I quit using the gem after I bumped into this bug.

No, the cause is still a mystery, I quit using the gem after I bumped into this bug.

@Arisey

This comment has been minimized.

Show comment
Hide comment
@Arisey

Arisey May 20, 2012

We have the same issue. Please help. Thanks

Arisey commented May 20, 2012

We have the same issue. Please help. Thanks

@gk0r

This comment has been minimized.

Show comment
Hide comment
@gk0r

gk0r Jul 4, 2012

I have the same issue with m app. It's not a major issue, but very annoying filler in the logs. Has anyone else come across a solution?

hackternoon - which gem have you stopped using and what do you use instead?

gk0r commented Jul 4, 2012

I have the same issue with m app. It's not a major issue, but very annoying filler in the logs. Has anyone else come across a solution?

hackternoon - which gem have you stopped using and what do you use instead?

@mattmenefee

This comment has been minimized.

Show comment
Hide comment
@mattmenefee

mattmenefee Oct 8, 2012

I think part of the problem is that the favicon links setup by the generator are

favicon_link_tag 'images/favicon.ico'

when they should be

favicon_link_tag 'favicon.ico'

if you are using the asset pipeline.

I think part of the problem is that the favicon links setup by the generator are

favicon_link_tag 'images/favicon.ico'

when they should be

favicon_link_tag 'favicon.ico'

if you are using the asset pipeline.

@toadkicker

This comment has been minimized.

Show comment
Hide comment
@toadkicker

toadkicker Apr 25, 2013

Contributor

Browsers request favicons whether you want them to or not. 2.2.6 shows the correct path.

Contributor

toadkicker commented Apr 25, 2013

Browsers request favicons whether you want them to or not. 2.2.6 shows the correct path.

@toadkicker toadkicker closed this Apr 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment