Displaying 20 results from an estimated 300000 matches similar to: "[Markaby] Support list?"
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
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 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 Jul 18
0
Markaby and select?
How do you get the select tag to work with Markaby? Apparently there''s
some sort of conflict? I don''t see a ''select'' function in Markaby''s
rdocs. I''ve tried all different variations and can''t get it to output
correctly, so I''m using select_tag instead.
Joe
--
Posted via http://www.ruby-forum.com/.
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
2006 Mar 30
3
Rails 1.1, Markaby, options_from_collection
Last night, I upgraded one of my rails apps to 1.1. This app uses
Markaby exclusively for its'' views, and once I checked out the latest
revisiong of Markaby (r33), everything was working fine except for one
thing:
select_tag(''province_id'', options_from_collection_for_select(@provinces,
"id", "name"))
Now returns this (as you see it is spitting
2006 Aug 10
1
[Markaby] Using cycle?
I can''t figure out how to get cycle to work:
tr :class=>@helpers.cycle(''odd'', ''even'') do
tr :class=>@helpers.cycle(''odd'', ''even'', :name=>''rows'') do
tr.@helpers.cycle(''odd'', ''even'') do
The first two output only one
2006 Jul 29
0
Accessing vars within helpers in Markaby
I''ve been trying to figure out how to do this:
select_tag ''site_id'',
@helpers.options_from_collection_for_select(Site.find(:all,
:order=>''name''), ''id'', ''name'', @site_id)
The select_tag gets output fine, but the default value
isn''t set. @site_id is set in the controller (@site_id
= cookies[:site_id]). In
2006 Apr 05
0
Markaby problem, in need of help
Hi, i''ve just started using Markaby and I think it''s great but I have a
problem. How would i recreate the following:
<select id="timesheet_state" name ="timesheet_state">
<option value="" <%if @timesheet_state==nil%>
<%="selected"%>
<% end %>>[All
2006 Nov 05
0
Any workaround for Rails caching?
> > I mean fragment caching. I get errors like this:
> >
> > ActionView::TemplateError
> >
(/usr/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:192:in
> > `method_missing'': no such method `length'') on line
#0
> > of app/views/items/index.mab:
> > 1:
> > 2: cache("#{@site.server_name}/index_items") do
> >
2006 Jul 26
3
Is Truer Coding Nirvana Possible?
I''ve been web developing for a long time, and last week it felt like the
final piece of the puzzle finally fell into place for me with Markaby
(no more angle brackets, slashes, closing tags, quotes, etc. Yay!) to
reach a state where web development is enjoyable and easy and powerful.
I''ve gone from:
ASP (NOT .Net), PHP, Perl
MySQL
CVS
Dreamweaver, Frontpage, and numerous
2006 Apr 05
0
markaby, installation problem,
Hello,
I get this error when installating Markaby plugin.
Using a browser I can access this site, but here ''open-uri.rb''
says ''404 Not Found''. Am I missing the point?
Thanks in advance.
site:/home/jnowak/project# ruby script/plugin install
http://code.whytheluckystiff.net/svn/markaby/trunk
+ ./trunk/svnindex.xsl
2007 May 03
7
How to create a drop-down list with Markaby?
Hi
I couldn''t figure out, how to create a drop-down list with Markaby. How
would I create something like this:
<select name="character">
<option value="marvin">Marvin the paranoid Android</option>
<option value="arthur">Arthur Dent</option>
<option value="zaphod">Zaphod
2006 Mar 04
1
How to install Markaby as a Rails plug-in
After many hours of messing around and researching...
I''m still unable to get why''s Markaby installed as a Rails plug-in.
The command below is what I keep seeing everywhere:
ruby script/plugin install
http://code.whytheluckystiff.net/svn/markaby/trunk
It seems like code.whytheluckystiff.net isn''t responding...
Maybe I''m missing something... :)
Is there an
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 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app.
I''m running into issues with forms however. If I use form_for the output of
the form gets swallowed. For example:
form_for :article, @article do |f|
f.text_field :title
f.check_box :published
f.text_area :description
f.text_field :pub_date
f.text_area :content
end
gets rendered as an empty form
2006 Apr 14
2
Markaby trunk broken?
Hello!
Does anyone know how I can check out the Markaby trunk? I''m getting this
error:
<code>
ruby script/plugin install
http://code.whytheluckystiff.net/svn/markaby/trunk
+ ./trunk/svnindex.xsl
/usr/local/lib/ruby/1.8/open-uri.rb:290:in `open_http'': 404 Not Found
(OpenURI::HTTPError)
from /usr/local/lib/ruby/1.8/open-uri.rb:629:in `buffer_open''
2006 Apr 25
5
markaby or erb?
Guys,
We''re embarking on a new dev project, and I''m curious....why would one
choose markaby over erb? I for one am no fan of the erb syntax, but
aside from that it''s similar to other technologies I''ve used in the
past: PHP, JSP, ASP, etc.
Why would one choose markaby over erb? What are the benefits? What are
the drawbacks? Is there anything remarkable
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 =>