Displaying 20 results from an estimated 2000 matches similar to: "Dirt simple .rcss templates"
2006 Apr 13
2
Content-type on render :file
Hi all,
I''ve just been trying out the dirt-simple rcss scheme posted here:
http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-templates
It looks like the content-type declaration on the line:
render :file => file_name, :content_type => ''text/css''
isn''t getting honoured. I had to add a separate:
2008 Apr 15
0
How to cache dynamic CSS (RCSS)?
Hi,
I''m using this tutorial: http://blog.hasmanythrough.com/2006/3/23/dirt-simple-rcss-templates
to make dynamic CSS files. However I can''t figure out how expire
cached CSS files.
Here''s my code: http://pastie.caboo.se/181021. Most of it is copied
from the tutorial.
Files are cached properly - i.e.
<%= stylesheet_link_tag "main" %> generates
2006 Mar 03
17
RCSS problems
Hi List!
Following http://rcss.rubyforge.org/files/README.html, I''m trying to get
RCSS to work with Rails. The rcss command itself works fine, but when
trying to access http://localhost:3000/rcss/test.css I always get
"Unknown action - No action responded to test.css", which I don''t
understand since the route and controller are in place.
Anyway, hopefully this is
2006 Aug 03
1
Using instance variables in CSS
What suggestions do you guys have for using instance variables in CSS?
I suppose I could just include a partial with style tags, but I''m
looking for something a little more elegant.
I found this: http://rcss.rubyforge.org/ Has anyone used it?
--
Posted via http://www.ruby-forum.com/.
2005 Oct 18
1
Rcss - first public release
Hi All!
My first contribution to Ruby/Rails community is ready. Here is short
snippet from README as an overview:
Rcss implements CSS-SSC (Server-side Constants) in Ruby.
Main features:
* Create rich CSS files using:
- ERB templates
- Server-side constants
- Server-side classes (preliminary)
* Simply add Rcss files to any Rails application
* Process Rcss files off-line using command
2006 Mar 22
5
Adding Custom templates?
Hi, does anybody have any pointers on where to look to learn how to
write custom dynamic templates? Agile is a little sparse on this (but
otherwise superb)!
Thanx
--
Posted via http://www.ruby-forum.com/.
2006 Jul 14
3
css in builder
Hello,
I''m reading the builder project API (http://builder.rubyforge.org/), but
I don''t find the answer to my question: Wich is the file name for CSS
templates? (like RXML to XML).
--
Daniel H
2006 Feb 02
6
How do I? Same Model, Different Controllers, Different Validations?
Hi all --
The simple question is: How do I set different validations for the same
Model, when accessed in different Controllers?
Here''s the scenario: I have a store/cart app, with a customer-facing
shopping cart, and a typical Admin side. The Admin side also has an
Order Entry component, where our staff can enter orders received by fax,
telephone, etc. Both the customer-facing cart
2006 Apr 16
2
Making requests in order
Hello all,
This is an interesting problem I have been working on. What I have is a
little multiuser project request tracking application. What happens is
that I log in and create projects and assign people to the projects.
Each project has steps associated with it, and the steps need to be done
in a certain order. Now, I have to request that the assigned person
perform each of the steps, and
2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be
able to view the application from any browser. However, I can only see
my application from a browser opened up on the localhost. When I use
any other browser it times out. I have already modified the following
line in the /script/server file (I''ve tried the numeric ip address also)
so that it is the real ip
2007 Aug 21
1
Render template not matching absolute path
Hi
I have a simple controller method like this:
class StylesheetsController < ApplicationController
layout nil
session :off
def gap
site = Site.find_by_hostname(request.host)
@colours = site.colours
respond_to do |accepts|
accepts.css { render :file => "#{RAILS_ROOT}/app/views/
stylesheets/gap.rcss" }
end
end
end
And I want to test that
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from
http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine
as this site is down and script/plugin discover is broken as it fails
when trying to add plugin repositories giving the message as below;
Add http://svn.northpub.com/plugins/? [Y/n] y
(eval):3:in `each'': undefined method `[]'' for
2005 Oct 03
3
WriteBoard for Programmers? (code support)
Anyone think it''d be useful to make a WriteBoard type application
that supported ruby, html, etc. and allowed programmers to
collaborate on writing scripts or just code in general and track each
others changes? Just a thought.
- Jim
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower?
core rails has been getting nice regular updates to the beta gems, but
switchtower is still back at 1962.
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL
backend. The client now wants us to add various workflow features that
will eventually expand into SOAP web services.
These workflow features include tasks such as automatically sending
reminders for due tasks, or if a particular set of information hasn''t
been logged by a certain time to automatically send an email
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain
to Ruby and Rails? I am assuming they are stored in or can be exported
to some kind of plain text file...
Sadly I am not yet able to make the leap from Linux (and Windows) to a
Mac and I am using Slickedit, which has *zero* built in support for
Ruby/Rails. I can add macros and code templates so I thought it might be
2005 Dec 18
3
automatically generate migration from db/SQL?
Hi,
I''d like to use migrations to build my initial database. Is there a gem
or plugin that will generate the migration code for initial db if I
point it at a live database or sql file?
If yes, then can you automatically generate the incremental migrations
as well?
Thanks,
Jason
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
I''m new to this list, I''m a student in History, Computerscience and a
bit of Philosophy from the Netherlands... I have started using rails a
few weeks ago, I did read the Agile Webdevelopment with Rails book, and
I generally started to love Rails for it''s sheer beauty and intelligent
structure...
However I came across something that puzzles me quite a bit. It''s
2006 Jun 04
1
Image links in stylesheets?
Guys,
I understand the logic behind using image_tag in rhtml to maintain app
portability, but how do you link to images in a stylesheet maintaining
that same portability?
Thanks for your help!
B.A.
--
B.A. Baracus: I thought you weren''t crazy no more?
Murdock: Only on paper.
--
Posted with http://DevLists.com. Sign up and save your mailbox.
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all,
I have a problem with an observer. I have a simple observer...
class ActivityObserver < ActiveRecord::Observer
observe Customer
def after_create(model)
bind_params(model)
@al.action = "create"
@al.save
logger "#{model.id} : created"
end
private
def bind_params(model)
@al = ActivityLog.new
@al.user_id = User.current.id