Rails best practice when embedding a signup form on every page -
i have user model validations behind it.
what i'd have signup form on every page of app, static ones.
i figured best way through helper methods in application_helpers.rb
, works fine, validations don't seem work.
i can serve form through iframe, seems bit hacky.
i'm using partials now, client side validation (github.com/bcardarella/client_side_validations) works on /new page, not application page.
what's best practice in case?
one of basic solutions use partial. benefit is: it's built in, it's simple. downside is: you'll busy feed session details proper rendering.
another solution use cells kind of case.
cells works lightweight controller can controller can do, , it's independent on controller. 1 use case of cells shopping cart, , login form use case in opinion.
Comments
Post a Comment