Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-29 22:22
Yes, rails ignores everything after .html.erb...

For future reference, the default way to restart phusion so that you see your changes in production is running touch/restart.tmp


By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-29 20:06
Problem resolved. D'oh! Should have caught it earlier.

I was renaming earlier template versions like so:

template.html.erb.06292010

The app was then still picking up the older version of the file (ignoring the last "extension", I suppose).

Renaming the older version like template_orig.html.erb fixed that problem.

By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-29 16:20
Well, a quick test shows I can make changes to 404.html and have them appear (after a touch tmp/restart.txt).

So, issue doesn't appear to be VM related.

By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-29 15:15
Thanks, Kim.

Using current version of LALC, with phusion.

Have already tried the touch tmp/restart.txt trick.

We are running in a VM environment, though. So I just realized that issue could be related to a cached or locked server image. So that's where I'll look next.

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-29 00:18
What version of LALC are you on? Unless it's an old one - it uses template.html.erb

Are you making sure your getting your changes to the file to the server?

Are you using mongrel or phusion or ... what is your development stack?

You only need to restart rails. We use Phusion and apache - so when I make a change to production I commit to SVN, update svn on the server and then run touch tmp/restart.txt at the root of the app and then refresh the page - then I can see my changes. Mongrel has a different restart script, I can't remember.


By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-28 23:52
I changed the template.html.erb file, and even rebooted my server, but the change still isn't appearing.

The page is:

http://alacarte.pugetsound.edu/subject-guide/44-Subject-Prototype?tab=490

Any chance that this page would not be using /app/views/layouts/template.html.erb?


By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-28 22:35
Oh .. we don't need both the meta tag and the change to the conditional statement - just the change to the conditional is what I am aiming for.

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-28 22:32
Yes, it cashes differently in production. You need to restart mongrel, or phusion or whatever web service your using. You don't have to restart apache.

By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-28 22:27
Yes, in IE8 in compatibility mode it looks fine.

I haven't changed the code yet. Actually, I have changed the code (added the meta-equiv tag, and the lte IE7), but the change isn't appearing in the browser.

I did restart Apache, but change still doesn't appear.

On my test server, running in 'development' mode, the change does appear.

More of a general question than an alacarte question, but When run in 'production' mode, does Ruby do something differently with caching?

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-28 22:23
So in IE8 in compatibility mode it looks correct to me. Does it not to you? Also can you try changing the IE conditional statement as I mentioned.

Also what version are you on and have you changed the code?


By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 22:49
Kim,

Sorry. That's on a test server, which won't resolve off campus.

Here's one on our production server:

http://alacarte.pugetsound.edu/subject-guide/44-Subject-Prototype?tab=490

Same thing, IE 8 in both modes.

You'll see how the content in the middle column floats differently in the two modes.

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 22:46
That example link isn't working for me.


By: wade guidry
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 22:40
Kim,

Here's a page you could look at to see the issue:

http://alacartedev.pugetsound.edu/subject-guide/34-Wade-Guide?tab=171

Look at it in IE8, with and without compatibility mode, and you should see the issue.

(I think the issue is dependent upon the relative lengths of the div columns on the page, and how their floats and alignments interact.)

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 22:04
It looks like just changing the IE conditional statement in template.html.erb fixes it.

Change:
<!--[if IE]><link rel='stylesheet' type='text/css' href='/stylesheets/template_ie.css' /><![endif]-->

To:
<!--[if lte IE 7]><link rel='stylesheet' type='text/css' href='/stylesheets/template_ie.css' /><![endif]-->

By: David Lippert
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 20:57
I actually added this code to my recent install of version 1.4.5 as well. I found that unless IE7 compatibility mode was turned on, subject guides that were laid out in the two column format would display one column under the other. It looked like there was not enough room for the second column to float up next to the first.

By: Admin Admin
RE: Where in code to add a tag to header? [ reply ]  
2010-06-25 20:44
Hi Wade,
All the template files are in /app/views/layouts/. Depending on what version your on, you need to add the tag to /app/views/layouts/template.html.erb and /tutorial.html.erb for the public tempates and /popup.html and /tool.html for the tool.

I would like to know what the problem is though so I can fix the css. Can you give me more details.

By: wade guidry
Where in code to add a tag to header? [ reply ]  
2010-06-25 18:01
I've found that the rendering of catalog module results sometimes breaks down in IE8.

If you put the page in IE compatibility mode, the page renders correctly.

So, I'd like to try adding the following tag to the general page header, to see if it would fix the issue:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

Any thoughts on the best file in which to do this?