Displaying 20 results from an estimated 30000 matches similar to: "Why does stylesheet_link_tag default to :media => 'screen' !?!?!"
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
2007 Aug 21
4
[AWDwR] Confused about has_one and has_many
Heya everyone!
I am quite new to Rails and I am reading AWDwR. I am at Task E "Check
Out!". I understand it quite well, but I have a problem with the last
playground exercise: Add a Table which contains the payment types.
All goes well, but I am not sure whether I should use has_many or
has_one(as in the Playground wiki at
http://wiki.pragprog.com/cgi-bin/wiki.cgi/PT-E-3).
I use the
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition".
In Chapter 11, Iteration C2: Adding a Page Layout
1 <!DOCTYPE html>
- <html>
- <head>
- <title>Pragprog Books Online Store</title>
5 <%= stylesheet_link_tag "scaffold" %>
- <%= stylesheet_link_tag "depot", :media => "all" %>
- <%=
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 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 Jul 25
1
Battle of Namings: stylesheet_link_tag vs link_to_javascript
Link helper namings counterintuitive in an environment where convention over
configuration prevails:
<%= link_to_javascript ''myscript'' %>
<%= stylesheet_link_tag ''mystyle'' %>
A simple def in ActionView::Helpers::AssetTagHelper would fix things in a
nice, backward-compatible way, such that:
<%= link_to_javascript
2006 Mar 28
1
stylesheet_link_tag and apache2
On apache2, my rails application cannot access my stylesheet.
<%= stylesheet_link_tag ''my_railsblog_stylesheet'' %>
however, all is fine if I run my application on webrick!
why? Am I doing something wrong with my apache configuration:
# My Apache configuration
<VirtualHost 10.0.0.14:8091>
ServerName 10.0.0.14:8091
DocumentRoot /home/ac/railsblog/public/
2011 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey,
in my `application.html.erb`, I have this line:
<%= stylesheet_link_tag ''application'' %>
which should compile through the asset pipeline and link to the
application.css (which does a `require_tree .`). In development mode,
I''d expect a
<link ... href="/assets/application.css" />
This file is actually delivered by, for example, the
2008 Jun 02
0
stylesheet_link_tag, javascript_include_tag, caching problems
So, the new caching for stylesheet_link_tag, javascript_include_tag
which rolls up the files into one all.js or all.css files is great ...
however I''ve run into an issue:
If all.cs or all.js don''t exist, they get generated ... great, I''ve
reduced the number of gets ...
The problem is what occurs when the files already exist ... even if
I''ve changed my list of
2006 Jun 22
4
stylesheet linking and layouts
In my layout, I have something like (shortened for clarity):
<html>
<head>
<%= stylesheet_link_tag "index", :media => "all" %>
</head>
<body>
<div id="site-container">
... <cut for space>
<%= @content_for_layout %>
... <cut for space>
</div>
</body>
A view action has another stylesheet defined
2007 Feb 18
3
Numbers on stylesheet_link_tag and image_tag
Can anyone explain to me exactly what are those numbers that rails
appends to stylesheets and images when using stylesheet_link_tag or
image_tag? At first I thought it would be so the browser wouldn''t
cache the stylesheets, but that doesn''t make much sense for images,
plus it seems that the numbers are unique, maybe based on the session.
Any idea?
Thanks
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" />
2007 Dec 13
10
Version naming to use in a RoR proyect
Hi everyone,
I would need to know if RoR follow any policy for version naming; I
mean, something like linux´s kernel does or similar.
For instance, kernel uses numbers separated in groups by dots (i.e.
pre 2.6 - AA.BB.CC). These groups mean differents fixtures, bugs
fixed...
I will start a big proyect from scratch with rails and I want to
choose now a standart to use and avoid future problems
2007 Feb 12
6
Cannot send_file then delete it
My application accepts a form to create multiple large(100''s of MB)
temporary files and then zip''s them up to send off to a user.
I have the files constructed, and the zipping working. The problem is
that if I use send_file to send the zip off to the user, I cannot
delete the file afterwards as it seems send_file forks off another
process and deletes the file before the
2006 Dec 11
4
creating a cache in rails
I need to create a small hash of values that persists across requests in
Rails. I cannot store this information in the database or filesystem
and only want to do it in memory. I was looking for a simple solution
to implement this and read somewhere that memcache is pretty much
overkill. This app is only running on one server so putting in memory
should be just fine. I''m very new to
2007 Jul 23
4
RoR Postion. Full time, Utah
We have 2 positions open for experienced ROR programmers. If you feel
like you are a experienced ROR programmer and are looking for a full
time position, please send over you resume. You must be willing to re-
locate. No contract jobs. We have an in house team and have only 2
positions left.
Starting Salary DOE. $30,000-$60,000 with housing, full benefits,
401k, paid vacation, ext. Don''t
2007 Jan 12
2
Forking a process in Rails is messing up mongrel
I''m trying to run an external Ruby script from my Rails app.
To do this i''m using this function
def fork_with_new_connection(config, my_class = ActiveRecord::Base)
pid = fork do
begin
my_class.establish_connection(config)
yield
ensure
my_class.remove_connection
end
end
Process.detach(pid)
end
Then, within my controller I do this:
2007 May 11
3
is_active?
Hey all, i''m rather new to rails and was curious if ActiveRecord
implemented anything like is_active where the delete functions would
just mark records as inactive, vs deleting rows. (similar to created_at,
etc). I need a history of transactions, and this is how I would code in
other languages. Any advice? Is there are smarter way to implement this?
Thanks in advance!
--
Posted via
2006 Oct 07
2
Proxying Apache to Mongrel, not sure if Apache is serving up static files
Let''s try this one...
I have Apache 2.0.55 set up and also have Mongrel set up. I have
Radiant set up running under Mongrel, and have Apache proxying to the
Mongrel instance. That all seems to be working fine.
I thought I''d modify the settings a bit to let Apache serve up the
static files - images, stylesheets, etc. I have it set up, and am not
getting any errors.
However.
2007 Jan 13
6
nice date function
Hi:
you know the way the google and this forum presents dates? How it''s
measure from the current date/time and presents nicely as "39 minutes
ago", 2 days ago, etc.? Has anyone done a gem or other library object
that I can get to do those types of dates?
Thanks so much in advance!
Mike
--
Posted via http://www.ruby-forum.com/.