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

Mongoid ODM doesn't properly output data types as form fields #19

Open
mrrooijen opened this issue Dec 11, 2010 · 1 comment
Open

Mongoid ODM doesn't properly output data types as form fields #19

mrrooijen opened this issue Dec 11, 2010 · 1 comment

Comments

@mrrooijen
Copy link
Contributor

In Mongoid when you define for example something like this:

class User
  include Mongoid::Document
  field :firstname, :type => String
  field :lastname, :type => String
  field :admin, :type => Boolean
  field :birthdate, :type => Date
end

It just creates text_field's for all input types, rather than a date select or checkbox for boolean.

https://github.com/pilu/web-app-theme/blob/master/lib/generators/web_app_theme/themed/templates/view_form.html.erb

@dryaf
Copy link

dryaf commented Sep 23, 2011

use formtastic, probably its compatible

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