similar to: Has anyone written a ''markaby_scaffold''?

Displaying 20 results from an estimated 3000 matches similar to: "Has anyone written a ''markaby_scaffold''?"

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 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
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 Jul 17
6
Has markaby been abandoned?
Recently discovered Markaby. Before I use it on a production system, I''d like to know if it is still being maintained? According to the change log, the last change was in February of 2006. Does this mean that the project has been abandoned? Or, at version 0.3 it was considered production stable and complete? -- Best Regards, -Larry "Work, work, work...there is no satisfactory
2006 Jul 19
4
How do I overwrite/extend a scaffold module?
I have many pages to generate quickly. They are based off of the scaffold generator, but I want to convert the rhtml files to Markaby, and change some formatting. Without having to do a lot of repetitive hand editing. Is there a simple way to overwrite/extend part of the scaffold generator? Do I need to write my own from scratch? -- Best Regards, -Larry "Work, work, work...there is no
2006 Nov 04
0
[Markaby] select with acts_as_dropdown problem.
I''m using Markby to convert a standard form witth selects. Can someone tell me why this works: <tr> <td><label class="formLabel" for="task_owner_id">Owner</label></td> <td><%= select ''task'', ''owner_id'', Owner.to_dropdown %></td> </tr> But, the Markaby conversion
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
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).
2005 Dec 29
6
How do I open and read/write to a file?
I need to process some text files quickly. I''ve not been able to find the answer in the archive. The Ruby Standard Library site times out. Can someone tell me where to find info on how to: 1. Get a list of filenames in a directory. 2. How to open a file. 3. How to read it a line at a time. -- Thanks in advance for the help, -Larry "Work, work, work...there is no satisfactory
2006 May 22
4
naming convention for bridge tables.
I read somewhere that the correct naming of bridge tables is in alpha order. For example. I have two tables: houses, and colors. If I want to create a bridge table to associate colors with houses, I would name the table: colors_houses The associations work fine. But, if I have a table named: track_houses. Building a bridge table called: colors_track_houses, gives me model associaton errors.
2006 Mar 19
1
Ruby startup slow on Windows Server 2003
Ruby script/console takes 30-secs to start on the Windows 2003 servers in our shop. Has anyone found a way to speed that up? ( I know Linux is much faster, but that''s not an option, in this case). -- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson -------------- next part -------------- An HTML attachment was
2006 Mar 23
6
[mongrel] [fedora5] install error " can''t find ruby libs"
Installed Fedora5. Installed Ruby 1.8.4. Installed rubygems. Installed rails. Created test app to verify that ruby and rails were working. When I attempted to install mongrel via: sudo gem install mongrel I get this error: Install required dependency daemons? [Yn] y Install required dependency gem_plugin? [Yn] y Building native extensions. This could take a while... can''t find
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 Mar 10
7
ODBC adapter connection help please.
Does anyone have any experience getting ODBC to work? I could really use some help here. I''m having trouble accessing a db2 database via odbc using rails. It''s an external database, that I import data from. I have placed the connection code in my model : unless connected? establish_connection( :adapter => "odbc", :dsn => "<dsn
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 15
6
[OT] Tables VS divs for form layout.
I''ve been using tables to get my forms to line up. ( I have usually one column for labels, and a column for values ). Should I be using divs instead? I''ve been reading some CSS design books lately. They tend to recommend divs over tables for general page layout stuff. But, what about the forms elements? What''s the ''best practice'' in this regard?
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 Apr 03
1
How to handle failed finds.
What''s the best way to handle a find that doesn''t find anything? For example. Model Foo @result = Foo.find(:first, :condition => "some condtion string").name if the condition is not met Foo.find stops the application with ''unexpected nil''. What is the best way to gracefully trap this error and return something meaningfull to the calling
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 =>