this problem is across my rails app... The text input boxes are huge instead of simply being line ones.
in app/admin/restaurant.rb
form do |f|
f.inputs do
f.input :name, required: true
f.input :servesCuisine
f.input :description
f.input :currenciesAccepted, as: :select, collection:Restaurant.available_currencies
f.input :priceRange, as: :select, collection: Restaurant.price_range
f.input :paymentAccepted
f.input :email, as: :email
f.input :telephone, as: :phone
f.input :faxNumber, as: :phone
f.input :longitude
f.input :latitude
f.input :image, as: :file
end
f.actions
end
Huge texbox
The problem also occurs on my login page where my email field is also gigantic. How can I fix this?
Thanks
You should use as
option with f.input
like -
f.input :servesCuisine, as: :string
f.input :description, as: :string
You can edit your admin_users.rb
file
f.input :email, as: :string
Hope this helps!!
LHH is 100% spot-on, however if you need a bit more control but don't want to involve CSS, you can do:
f.input :title, label: 'Title tag', input_html: {cols: "5", rows: "1"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With