Incorrect display of URLs in Rails - ruby-on-rails

All the URLs in my rails app show both the URL text and the actual URL. So, for e.g., if I use Hello, the link shows up on the actual page as "Hello(/test)" instead of just "Hello".
https://skitch.com/e-felixjamestin/g64mi/ruby-on-rails-tutorial-home
Why is this? It seems like a simple enough thing to correct, but I've unable to find any info on this.
Do help :)

follow the screenshot - it is or incorrect css or preferences of your browser. ( HTML is right )

Related

Code that can look at open browser tabs and store the urls?

I am attempting to write a program that looks at the current browser you have open, goes through each tab, and copies and pastes each page's url into a notepad file.
I have no issue with writing the file; my main concern is that I can't find anything in any language that can look at the browser, sift through the tabs, and scrape the url.
Does anyone know if this would be possible, any code that might be able to help (in any language), or if something like this exists? I would appreciate anyone pointing me in the right direction.
The software I was looking for did not exist, so I created it. It's a chrome extension called Raincheck

Search in Rails with screen shot and meta tags

Here is the case...
In Rails app, you type URL inside text box, and result should comes with, screen shot for that URL page as JPG, few meta tags such as, Title, URL, icon, description, ...or what ever rails can do or I can get.
How this can be done by rails? OR How I can get screen shot for URL???
Detailed answer would be so helpful I'm so new to rails.
Thanks
You can use IMGKit to generate a thumbnail/screenshot for the particular URL
https://github.com/csquared/IMGKit

Can someone explain the iOS "x-apple-msg-load://"?

I'm sending emails from a Rails application. The emails contain links like the following:
http://critically.in/events/14-san-francisco-ca-mc-hammer-bay-to-breakers
The URL is correct when I open it on my computer, but when I read it in Mail on my iPad or iPhone, the link is converted to:
x-apple-msg-load://90CEFE95-A78E-427F-B68E-EF184F497B69/critically.in/events/14-san-francisco-ca-mc-hammer-bay-to-breakers
Make sure your links are actually fully qualified. That is, make sure they are containing the scheme and the entire domain-path.
bad: ../blah/foo/bar
good: http://example.com/blah/foo/bar
Relative URLs are not properly resolved by the iOS mail client and result into things looking like the issue you are describing.
To be absolutely certain, make sure you check the raw message text and not the results you see within other mail-clients.

Symfony TinyMCE Widget sfWidgetFormTextareaTinyMCE will show code at the end

I'm working on my first symfony project (it's great !), i am using the sfWidgetFormTextareaTinyMCE widget for a form in the backend (to display the WYSIWYG).
It works fine, but at the frontend, instead of showing me the formated text, i have the strong,p,... tags in the text.
Same if i paste a youtube code for example.
Does someone knows how i could solve this issue ?
Thanks in advance.
Julien
so these strongs and p's... did you create them in WYSIWYG mode on the back end or did you try and paste actual code into the editor? To cut and paste code you need to be in source mode. Other wise you need to use the controls for bold on the tool bar and and line breaks for the p's.
If you used source mode, make sure strong and p are configured to be allowed by tinyMCE - i thought they were by default, but maybe not.
Thank's for your answer.
Actually i justed used the $object->getRaw()->getValue() method instead of $object->getValue() and i got the "raw" result.
In fact it was properly saved in the database, i just didn't knew how to avoid the auto escaping.

Extract part of an url using a bookmarklet or similar (e.g. firefox addon)

Does anybody know of a bookmarklet or firefox addon that let's you extract part of an url.
Specifically I want to extract the message id from a gmail conversation.
Every message in gmail has a unique ID. The url may look like this: https://mail.google.com/a/domain.com/#all/1251b8f40722a3c2
What I want, is to be able to extract the last 16 characters (the "1251b8f40722a3c2" part) from the url and have it copied to the clipboard automatically.
A bookmarklet would be preferred (compatibility), but a firefox addon is also okay.
Thank you! :)
Forgot all about this question.
I got this answer from someone, I can't remember who. But maybe it will help someone else in my situation.
javascript:(function(){var%20theSnippedURL=location.href.match(/([0-9]|[a-f]){16}/g);if(theSnippedURL){var%20url=prompt(%22Copy%20the%20extracted%20ID%20below.%22,theSnippedURL);}else{alert(%22Couldn't%20find%20conversation%20ID.%22);}})();
This javascript can be used in a bookmarklet like this. It extracts the message ID from Gmail, and shows it in a popup box. Unfortunatly it doesn't copy the ID to the clipboard, but you can just copy it from the popup, so that's ok.

Resources