Displaying 20 results from an estimated 1000 matches similar to: "Any workaround for Rails caching?"
2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
Let me give you the background. I am using rxml for a lot of my views
for a rails project. I also noticed that there is a lot of the XML
being dynamically generated on data that doesn''t change that often. I
worked on trying to cache the xml fragment that I needed but came to
the quick realization that cache only handle ERB/RHTML files. Needless
to say, I have spent some time creating an
2006 Oct 14
3
[Markaby] Any workaround for Rails caching?
The ability to use Rails'' caching is very important to
me. Is there any way at all to get Rails caching
working with Markaby templates? Right now if I use
cache tags, I get some "length" error.
Thanks,
Joe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Dec 17
1
Markaby template & layout (can't get them to work together)
Hi all,
I am starting a new rails app with the Markaby plugin (had some issues
installing, but think its working).
First, i created an index.mab file for a controller containing:
h1 "First template"
That rendered fine. Also, I do not have a "def index ..." in the
controller.
Then I created an app/layouts/application.mab file. It didn''t get picked
up until after
2007 Sep 27
14
Camping and ruby2ruby
Hi everybody,
I would like to use ruby2ruby in a caming project, but there seems to
be an incompatibility with camping, ruby2ruby and markaby.
Unfortunately I receive strange Markaby::InvalidXhtmlErrors.
To demonstrate, that only combination of all three components causes
the problem I added the following code. I relies on Markaby and
ruby2ruby only and works fine (a.k.a. as expected).
2006 Mar 09
0
markably in instance_var mungling
this bug is similar to something i see already discussed on why''s
blogpost comments, which was reported fixed, but that was before the gem
was made available (which is what im using since i cant seem to access
the C.WTLS SVN)
my guess is one of 3 things: fix didnt propagate to gem, my own failure
to make an educated guess on proper setup (1), or a genuine bug
essentially,
for
2006 Jun 19
2
is there a ''Markaby_scaffold'' available?
I discovered Markaby recently, and am loving it! I''m generating scaffolds,
then converting them to Markaby ''.mab'' files. It got me wondering... Has
anyone written a plugin to generate scaffolds in Markaby, yet?? That would
be truly awesome if there was on out there already.
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2006 Oct 10
0
how do I start/use Markaby 0.5?
I''ve upgraded from Markaby 0.3 to 0.5 using gem install markaby. When
I start my app and attempt to view my /articles/list.mab file, I get
this error:
Missing template .../app/views/articles/list.rhtml
I checked the readme and the changlog on why''s site to see if there
was any solutions mentioned, but didn''t find anything. Is there a
special
2006 Nov 03
2
[OT] Markaby trunk and Rails ivars
Can someone explain the new Markaby syntax to me? I''m using Markaby
as a Rails plugin, fetched from the trunk.
I''m losing my instance variables somehow (@thing is always nil):
class ThingsController < ApplicationController
def index
@thing = "Bacon of the chunky variety"
end
end
# app/views/index.mab
h1 { "You should see a thing here:" }
p {
2006 Jan 12
0
Markaby (Markup as Ruby) plugin
With the help of Tim Fletcher, I''m glad to present a new plugin for
writing HTML templates in plain Ruby. You write .mab templates in
app/views/ which contain Builder-like representations of HTML.
As an illustration, here is the scaffold edit.rhtml remade as Markaby:
h1 ''Editing product''
start_form_tag :action => ''update'', :id =>
2006 Jun 20
0
Has anyone written a ''markaby_scaffold''?
I discovered Markaby recently, and am loving it! I''m generating scaffolds,
then converting them to Markaby ''.mab'' files. It got me wondering... Has
anyone written a plugin to generate scaffolds in Markaby, yet?? That would
be truly awesome if there was on out there already.
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2006 Aug 09
2
[Markaby] sub-templates?
Has anybody figured out how to do sub-templates in Markaby?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Jun 28
7
caching objects
Hi,
i just wanted to say my sorries in advance (sorrie/sorry/sorri)...i have
just started learning about the subject of caching, but unfortunately
haven''t effictively managed to implement what i had learned.
obviously it''s possible to cache a whole page, or action with the
caches_page :x or caches_action :y methods, but for some reason it
hasn''t really worked with
2006 Aug 17
3
[MARKABY] Multiline text?
Anybody know if it''s possible to have multiline text in Markaby without
resorting to a bunch of text statements or putting the text block in
another file and using render :file ? I need to add chunks of HTMLized
javascript to my templates.
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Aug 09
3
[Markaby] yield instead of @content_for_layout?
We''re supposed to use yield instead of @content_for_layout, but I can''t
get yield to work in a Markaby template:
yield
text yield
Either one of these lines results in a ''no block given'' error (but ''text
@content_for_layout'' works). Anybody know how to use yield instead?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Sep 10
11
Using partials with Markaby
I''m trying to use a partial from within Markaby. I haven''t been able to
figure out how to access a parameter passed into the partial. Here''s the
code I''m using:
h1 "Create a new note"
if @note
render :partial => ''form/errors'', :record => @note
end
...
(that snippet, as well as the partial is stolen shamelessly from Restolog
2007 Oct 27
1
Edge Javascript caching just not working
For some reason, in production, with this one line of code:
javascript_include_tag :all, :cache => true
I get this:
<script cached="true" src="/javascripts/prototype.js?1193454472"
type="text/javascript"></script>
<script cached="true" src="/javascripts/effects.js?1193454472"
type="text/javascript"></script>
2006 Jun 28
4
[markaby] Trouble accessing session values.
Evaluating session variables inside a markaby paragraph tag always returns
false. For example
welcome.mab
--
p "Good morning Mr. #{session[:user]}."
--
displays:
Good mornig Mr.
How can I access session variables in maraby?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part
2007 Aug 05
0
Markaby syntax question
Hi,
I am just getting into Rails and I thought I''d try Markaby too.
I have a mab file with the following in it:
form_for :user do |form|
p do
label "First Name:", :for => "first_name"
form.text_field :first_name, :size => 40
end
(... cut similar)
submit_tag "Add User", :class => "submit"
end
2006 Jun 15
8
Markaby Installation Issues
Ok,
So I followed the directions.. I did a ''gem install markaby'' (which sounds
like its enough to get me going for rails), but I wasn''t sure, so I tried to
install the plugin as well.
Plugin installation fails looking for a file:
Script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
Outputs this error:
+ ./trunk/svnindex.xsl
2007 Nov 06
5
textarea fails on rows attribute
Hi,
Camping 1.5.180
Ruby 1.8.6
It looks like Camping is choking on the ''rows'' attribute for input tags:
input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3)
That will fail with:
Markaby::InvalidXhtmlError no attribute `rows'' on input elements: