similar to: stylesheet linking and layouts

Displaying 20 results from an estimated 4000 matches similar to: "stylesheet linking and layouts"

2007 May 09
5
layouts + routes = confused
I''m new to RoR and the tutorials I''ve found on the web, while helpful, aren''t as "complete" as I''d like them. I understand the basics when it comes to layouts and routes, but I''m trying to get them to work together. MY first task was to implement a user authentication system (registration/login/logout/change_password). This works fine with
2006 Apr 12
4
CSS and Javascript with partials and layouts
Hi, I''m developing an application that uses a layout called main on every page. Most of the individual pages are represented with a single partial template, but there are several pages that are composed of multiple partials. My main layout looks something like this: Code: <html> <head> <title><%= @title %></title> <%= stylesheet_link_tag
2006 Jun 01
10
Stylesheets not being recognized
I am a newbie, but have worked through 4 or 5 tutorials. I am using InstantRails. The problem is that I cannot determine how the style is being included. I have modified the stylesheet from /public/stylesheets/, even removed it. All to no avail. The inline <style>...</style> code is still being included from somwhere. Where? What am I missing? thanks, steve -- Posted via
2006 Jul 19
4
Using Application.rhtml as layout for all controllers
I put my nav system in application layout. that way any controller loading will have the nav system. I have one problem though - the <%= yield %> is in the body, so how would my controllers specify other css files? my application layout would look like this: <html> <head> title css include javascript include </head> <body> nav system <%=yield%>
2006 Mar 07
1
Relative stylesheet reference
Problem: The HREF generated by the stylesheet_link_tag is an absolute path. Details: The layout for my view has the following line <%= stylesheet_link_tag ''scaffold'' %> At runtime, this gets translated to <link href="/stylesheets/scaffold.css" ... /> This does not get resolved correctly. The problem is the leading slash. It should be <link
2006 Aug 18
2
Including CSS from a stylesheet file in a an e-mail
How can I include the contents of the file /public/stylesheets/print.css in an RHTML page for ActionMailer? Because there is no controller or session, none of the usual tricks work. Do you have to use basic file IO or there some convenience method I haven''t seen? Thanks Ashley -- "If you do it the stupid way, you will have to do it again" - Gregory Chudnovsky
2008 Mar 18
5
stylesheet link causing routing error
Hi - I think this is a simple 2.0 conversion issue. In my application layout, I have a simple stylesheet link tag: <%= stylesheet_link_tag ''application'' %> In my public/stylesheets directory, I have application.css When my pages are rendered, I get: <h1>Routing Error</h1> 27<p><pre>No route matches "/stylesheets/application.css"
2008 Apr 13
2
Help with Apache2 and stylesheet
I have problems with my <%= stylesheet_link_tag ''example'' %> with apache . I have my css file under public/stylesheets/example.css, but it seems apache can''t read it. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Dec 12
2
how to print out content of stylesheets in <style> tag via stylesheet_link_tag
Hi! I''m developing facebook apps with ruby on rails. My connection is really slow. The stylesheets do not load mosts of the time. So i want to print out the content of my .css-files in <style> Tags. Is this possibe with some parameter to the stylesheet_link_tag or an other tag? Greetings from Germany Klaus -- You received this message because you are subscribed to the Google
2006 Aug 11
6
css - location of files.
Hi all. I have the following scenario. http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %> to define the stylesheet for layout, I have myapp_standard.css in /public/stylesheets and it works fine. However, in the stylesheet I define a image to use for my site background. eg: html, body{ background-image: url(mysite_background.jpg); padding-top:
2006 May 23
11
adding layouts within layouts
Hi, I want to be able to have several layouts within each other so that I don''t have to keep repeating the layout code for one, in another. An example would be having a layout for the title of your web page and then having an embedded layout for the body portion in which the HTML for whatever view gets displayed. Is this possible? Thanks. -------------- next part -------------- An
2006 Mar 18
3
Weird stylesheet_link_tag issue after moving servers
Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" />
2008 Sep 17
2
Layouts and content_for
when i studied the tutorial about layouts & content_for from railscast.I need a clarification as per their tutorial. url:http://railscasts.com/episodes/8-layouts-and-content-for <!- projects/index.rhtml -> <% content_for :head do %> <= stylesheet_link_tag ‘projects’ %> < end %> <!- layouts/application.rhtml -> <head> <title>Todo List</title>
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some info or just give me an explanation. thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Dec 09
5
Browserized Styles Plugin
Browserized Styles provides a dead simple way to create browser- specific CSS code for use in a Rails application. All you need to do is create a .css file targeted to a browser by appending an underscore and identifier to the end. === Installation === script/plugin install http://svn.intridea.com/svn/public/browserized_styles === Example === Let''s say I have some complex CSS code
2007 Jan 19
4
Problem with link tags
Hell all, I have a layout were I add my stylesheets and javascript in the following manner: <%= stylesheet_link_tag "/form" %> <%= stylesheet_link_tag "/text" %> <%= javascript_include_tag :defaults %> But what happens is that in the actual web page the source is the following: <link href="/form.css?1168168516" media="screen"
2010 Jun 14
2
stylesheet_link_tag
I know that the following statement loads the scaffold stylesheet, but what exactly does stylesheet_link_tag do here? <%= stylesheet_link_tag ''scaffold'' %> Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Jul 27
3
A number (id?) is added after css/js tags like style.css?1154009736
Dears, My Ror setup works.. but I can''t guess why <%= stylesheet_link_tag ''style'' , :media=> ''screen''%> is rended as <link href="/stylesheets/style.css?1154009736" media="screen" rel="Stylesheet" type="text/css" /> What is that number.. any usage ?? Or I misconfigured something ? Thanks
2006 Aug 04
2
how to remove ID from stylesheet_link_tag?
When I use stylesheet_link_tag, the results come back with a timestamp ID, like this: <link href="/stylesheets/style.css?1154009736" media="screen" rel="Stylesheet" type="text/css" /> I don''t want the query string and ID on the end, but I can''t see how to disable this in the docs. How do I do this? thanks, jeff -- Posted via
2006 Apr 05
13
scaffold misuse?
Running ruby script/generate scaffold Product Admin is a wonderful way to set up well, exactly what it says, a scaffold. My problem is that I have several other tables that are linked, through foreign keys, to the Product table. Say an "authors" table. Now when I go enter a new product, a book, I want the application to provide a drop down list of authors generated from the records in