SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

app/views/registrations/new.html.erb

Open rivendale2010 opened this issue 14 years ago • 6 comments

hey! i installed Diaspora from github on a fresh instance of Ubuntu, it rocks!

i'd like to suggest the default for the form validation in app/views/registrations/new.html.erb be documented, or changed to false by default

it was otherwise a trouble free install! but the logic on that part is not obvious (it is backward from a user perspective) and not documented anywhere that i could find :)

is it possible for me to contribute with a few lines of comment? does that require testing?

rivendale2010 avatar Jun 15 '12 02:06 rivendale2010

can you explain what you mean by 'default for the form validation'?

Raven24 avatar Jun 18 '12 12:06 Raven24

in the line

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => "form-horizontal block-form", :autocomplete => "off"}, :validate => true) do |f| %>

on my install i had to change to :validate => false, otherwise the form will continue without even checking for the presence of form data or valid syntax

i find that odd and it confused the heck out of me at first :)

rivendale2010 avatar Jun 18 '12 15:06 rivendale2010

That's what I thought, and I've been on it today. #3401 should fix that and if CI is happy, I'll merge the fix instantly.

Raven24 avatar Jun 18 '12 17:06 Raven24

that is just too cool! thanks :) i would not have been doing that except that the catch-all page that follows does not work at all :)

rivendale2010 avatar Jun 18 '12 17:06 rivendale2010

Ok, I just merged the fix. Now the client-side validations should keep you from ever reaching the broken follow-up page in the first place.

Raven24 avatar Jun 18 '12 18:06 Raven24

thanks very much, i'm thrilled! i think that does work better for those doing small setups

my background is in using ASP, i don't know Rails and Ruby too well yet, but i hope to contribute eventually

in ASP when that happens (things like a page with two bodies or content showing twice) it's usually due to the structure of the content containers. i know cause i was terrible at planning them! :) lol...

the same problem exists in the default splash page and the sign up, and other places making the transition, there is a good setup for a deployment of a software as service but the small user can not get past the messed up syntax :)

rivendale2010 avatar Jun 19 '12 03:06 rivendale2010