Displayed in Browser different when logged in. Rails - ruby-on-rails

I'm new to rails:
I've created a Reddit-lite like site. After I uploaded it to heroku I noticed that when I was signed in to an account I created on the site, the page was displayed in the browser as I intended it to be displayed, but when I logged out, or even before I logged in, the partial was displayed much larger than I intended it to be.
I've tried putting in search terms to here and haven't found anything close to the issue I am having, so I assume I am not describing it incorrectly. Here is a link to my site, so where ever I am lacking in describing my issue might be overcome by your experiencing it.
http://postit-reed.herokuapp.com/

The h3 tag around your welcome message isn't closed properly when logged out. Causing the browser to wrap the rest of your html in the h3 which applies a bigger font size to everything making it look bigger. Fix the h3 tag.

Related

SEO: How to get rid of the webpages titles below the main link url on Google

Recently I changed my website which now is hosted on a different server (the previous server hosted by another company is not available anymore).
Everything is different on my new website including the content, the layout, the design and, most important here, the url's format.
The only thing I kept is my domain name which has been redirected toward the new server.
Keeping the same domain name is the issue:
The problem is that when I make a search about my website on Google, the main link displayed is ok but below this link, there are 4 titles corresponding to 4 sections of my previous website.
Clicking on them will lead to previous url's that don't exist anymore.
You get a kind of cached result with no css and the users are complaining a lot about that.
I opened an account on "Google webmasters" and I declared a brand new sitemap.xml and asked for a new Googlebots crawling (three times already).
It's been a week now and the titles below the general link on Google remain the same.
How can I get rid of these?
On "Google webmasters" I tried to "ban" the url's of these titles. It kinda works but not as I expected: The titles remain there but there is no more description below them (which doesn't solve my issue, it just makes it uglier).
Another difference is that one of these links finally disappeared … but another outdated section link has taken its place. It can go like this forever as there are too many possible links to ban with no certainty of result.
What I would like is just keep the main link on Google and get rid of these "sub" titles. At least the old ones.
PS: I never asked for these titles in the first place. they just appeared a long time ago.
I don't mind getting the new sections there but certainly not the old ones.
Thank you for your help.
First of all, I would block the old site's content with a robot.txt to prevent any crawls by cached sitemap.xmls.
If you have a site with a decent amount of SEO traffic, I'd create an htcaccess 301 redirect of the most important results.
It can take some time until your de-indexing will start. I've waited about 2 weeks.

How can I mask the URL path to a webpage within my website?

I have a website with a default home page of index.html, let's call the website: www.brianbauer.com ( that is my name BTW).
www.brianbauer.com operates something like a "treasure hunt". by clicking on various hot-spots on each HTML page access via brianbauer.com, you get redirected to the next html page. this continues for some period of user-clicks. One of the ideas is that on each visit, it is not obvious how the user reached a specific webpage. all they know is that they kept clicking and ended up at some final HTML page. but every click that brings up a new HTML page, still shows "http://www.brianbauer.com" in the Address bar. This is a game, nothing "wrong" going on here.
1. All of the HTML pages are owned by me, and I authored them all.
2. No illegal or unscruptulous activty of any kind going on.
3. all HTML pages in scope are under the root domain of brianbauer.com
the idea is that as users look at pictures and read a narrative, they make choices. a typical webpage might have 4 choices. depending on your choice, the next HTML page you see is determined.
I have created site maps that are basically decision trees.
think of it like a digital corn-maze. It's important that the full URL path to the current HTML page that they are looking at is masked, and should only show "www.brianbauer.com". it is true that someone more sophisticated could look at sourcecode, record their screen, keep notes, etc. but the mask will accomplish 90% of my goal.
as for being able to bookmark a certain webpage that they have "discovered"? the whole point is that they should not be able to....
I am NOT trying to mask my domain, that is easy. I am trying to simply maske what appears in the Address bar as users hit HTML pages which are children of that domain.
Thank you for the help.
Brian
There is something called CNAME cloak it might be one option.
Another option could be using ajax and replace content of the page.

Ruby on Rails Mysterious Javascript Alert box with cookie information

I have a problem in a Ruby on Rails app that I am working on. I have been working on the app for months and I have never had this problem before and after a bit of Google searches I think that somehow someone is trying to steal cookies with javascript.
When I click on the link I get an alert box titled "the page at www.napkinboard.com says:" and contains the following message:
__utmz=217223433.1270652009.59.3.utmcsr=localhost:3000|utmccn=(referral)|utmcmd=referral|utmcct=/; __utma=217223433.2133018314.1265749085.1271097412.1271125626.63; __utmc=217223433; __utmb=217223433.11.10.1271125626
I checked the database and all data associated with this 'food_item' looks completely normal and does not contain any javascript at all.
How did this suddenly happen and how can I stop it? I appreciate any help. Thanks.
EDIT: Can't believe I forgot the URL: http://www.napkinboard.com/food_items/413
It sounds like you've found a link that exploits an XSS vulnerability using the query string.
Make sure to properly escape all of your output.
load up firefox and firebug, and see what the javascript and network stack trace show. That should give you an idea of where it's coming from, etc.

rails page won't display entirely

I'm having the most peculiar problem, and I was hoping I someone could point me in the right direction on how to address it (or even locate it...). I'm working on a rails site, and the pages display in most browsers without any issues. In others (AOL, IE 6 - 7, and some of the other lesser used ones) the page will load, with all of the correct formatting, but completely missing the inside content.
For example, the site uses a traditional online store format, but will load the name of the site, the name of the product, and the page footer, but not the description or images. This issue has been reproduced on several computers, but I can't figure it out at ALL.
Thanks for any help!
My approach to this sort of problem would be to use the browser to get the html you are trying to render (in firefox, View>>Page Source), and saving it as a static html file. Then you can fiddle with this file one piece at a time until you figure out what's throwing IE for a loop.
If you view the page source is the data you are looking for included? This can help you figure out if you have a formatting issue on the client side or a data generation issue on the server side.

sIFR not working with disabled Cookies

sIFR is working fine across browsers UNLESS cookies are disabled. When cookies are disabed, the site appears to begin to load on refresh, but then quickly turns blank to a white screen without any content and no markup in the page source. I've tried using prefetch to resolve with no success. Has anyone else experienced a similar problem?
I received an email the other day asking a rather similar question, in which sIFR.activate() was invoked from inside $(document).ready(), which would break if cookies were disabled. For various reasons sIFR.activate() must be called directly.
I'm not sure if this is applicable to the situation as described in the question, but the coincidence is interesting.

Resources