Radhames Brito wrote:
Since marmen is a veteran he my be able to correct me if im wrong but,
i
think right now there is no gem to interact with sass mixins from within
rails controllers (simple I/O operations),
Why should there be? The controllers shouldn’t care one bit about CSS.
What are you envisioning here?
that would be nice, to have
kind
of an observer that can change a sass file and concequently its
generated
css according to some variable,
That might be nice. I’d love to be able to do dynamic Sass per user
more easily, to allow for custom styling.
this could be achieved by adding classes
to
and html element but my css would requiere to have every possible class.
This would allow me to do things like darken the color pallete of my
site
according to the hour of the day, if i go the way of adding multiple
classes
and adding removing them i would need several class for the effect.
No. Just have multiple CSS or Sass files (each one defining the same
classes), then do
= stylesheet_tag “hour_#{@hour}”.
Or run a Rake task every hour to regenerate the CSS files from Sass with
the variable.
It
would
allow the sass file to be even smaller i think. It would awesome if it
could
make a fork per user and delete it when the session ends.
…whenever that is. Session ending is not always easy to determine,
which is why we need brute-force expiration logic.
[…]
But right now what i want to see is a text paging gem, that can split a
block of text and save it on different pages on the DB, it would be a
polymorphic table blahblah with an atc_as_text_pager ,the usual stuff,
with
the option of spliting by number of letters , words or an html container
tag, like div or p. Then i could put this to work with will_paginate. It
would be veeery handy.
And veeeeery wrong. The database should store the whole block of text.
The view and controller should decide how to split it. This makes the
presentation more flexible: what if you want short pages on the mobile
phone, long pages on the computer, and whole articles in the RSS feed?
@Marnen
If you can point me into a deep guide for extending ActiveRecord with
gems i
would appreciate it.
Why do you think I know how to do this? I’m just starting to write
my first AR plugin.
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]