Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Help? #15

Closed
burtondav opened this issue Sep 10, 2014 · 1 comment
Closed

Some Help? #15

burtondav opened this issue Sep 10, 2014 · 1 comment

Comments

@burtondav
Copy link

Could you please show some example data that goes into these fields:

body (text): the source of template (I understand this one)
path (string): where to find template (would 'views/reports' work?)
locale (string): it depends from available locales in your app
handler (string): as locale field, it depends from avaiable handlers (erb, haml, etc...)
partial (boolean): determines if it's a partial or not (false by default)
format (string): A valid mimetype from Mime::SET.symbols

Do they all need to have data? I'm getting 'is not included in the list' when empty.

I'm trying to store a xlsx template in the database. Does this look right?
Path = vehicles/evlist
Locale = en
Handler = axslx
Format = xlsx

NEVER MIND - I got it to work!

Thanks!!!

@andreapavoni
Copy link
Owner

I'm glad you figured out :-)

just for reference, check how I build a factory in the specs folder:

https://github.com/apeacox/panoramic/blob/master/spec/support/factories.rb

cheers,
Andrea Pavoni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants