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

Is there a chance to intercept and store existing views in db automatically #13

Closed
nglx opened this issue Jun 10, 2013 · 1 comment
Closed

Comments

@nglx
Copy link

nglx commented Jun 10, 2013

I would like to somehow prepopulate database with partial/templates from filesystem. Ideally it could be done somehow magically when user clicks particular page.

Thanks for any hints.

@andreapavoni
Copy link
Owner

You can import them with a custom rake task, something that does the following:

  • reads html.erb files stored somewhere on the filesystem
  • stores each of them on db with appropriate naming and required info
    • file name
    • path
    • handler
    • MIME type etc...

no magical actions here ;-)

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