Hi Brian,
Any change on the view?
Thanks,
TF
On 01/28/2011 05:59 AM, Brian Gallew wrote:
I'm writing an app that let's you select some data and then print it
in a format you specify. I've got the data selection bit working
pretty much the way I want it to. Now I'm adding the printing bit and
am just completely at a loss. I've stuck extra bits into the form
definition so that I can verify that it's actually getting called, but
the actual form itself never gets displayed. Personally, I'm thinking
this has something to do with the fact that of the
auto/rapid/(forms|pages|cards).dryml files, only cards actually knows
about the Printconfig model. Both of the other dryml files lack
references to that type! Anyway, here are the relevant bits and pieces:
Model:
class Printconfig < ActiveRecord::Base
hobo_model # Don't put anything above this
fields do
plandscape :boolean, :default => false
pleft :integer, :default => true
pmiddle :integer, :default => false
pright :integer, :default => true
pcardwidth :float, :default => 3
pcardheight :float, :default => 1.5
ppagewidth :float, :default => 8.5
ppageheight :float, :default => 11
timestamps
end
(all of the permissions are set to true)
Controller:
class PrintconfigsController < ApplicationController
hobo_controller
end
excerpt from application.dryml
<def tag="form" for="Printconfig">
<name/>
<hr/>
<form merge param="default">
The form is actually printing here.<br/>
<error-messages param/>
<field-list fields="plandscape, pleft, pmiddle, pright,
ppagewidth, ppageheight, pcardwidth, pcardheight" param/>
<div param="actions">
<submit label="#{ht 'printconfigs.actions.save',
:default=>['print']}" param/>
</div>
</form>
<hr/>
blah
</def>
What actually displays:
Printconfig 3
------------------------------------------------------------------------
------------------------------------------------------------------------
blah
Printconfig 3
Can anyone tell me what's wrong?
--
You received this message because you are subscribed to the Google
Groups "Hobo Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.