remove musician radio buttons in signup form

This commit is contained in:
Nuwan 2021-03-15 11:50:17 +05:30
parent 8f7f7b4b68
commit c99d8e2dd3
3 changed files with 3 additions and 10 deletions

View File

@ -1466,7 +1466,8 @@ module JamRuby
location = options[:location]
instruments = options[:instruments]
birth_date = options[:birth_date]
musician = options[:musician]
#musician = options[:musician]
musician = true
photo_url = options[:photo_url]
invited_user = options[:invited_user]
fb_signup = options[:fb_signup]

View File

@ -29,15 +29,6 @@
<%= errors_for @user %>
<%= form_for(@user, :url => @signup_postback, :method => :post, html: { id: 'signup' }) do |f| %>
<div class="row mb-2 register-as">
Register as a:
<%= f.radio_button :musician, true, :class => "register-as register-musician" %>
Musician
<%= f.radio_button :musician, false, :class => "register-as register-fan" %>
Fan
</div>
<div class="row mb-2">
<div class="col-md-6 col-sm-12">
<%= f.label :first_name, "First Name:" %>

View File

@ -72,6 +72,7 @@ describe "Signup", :js => true, :type => :feature, :capybara_feature => true do
should have_title("JamKazam | Congratulations")
should have_content("Your account is ready.")
user = User.find_by_email('newuser1@jamkazam.com')
user.musician?.should == true
user.musician_instruments.length.should == 1
location = GeoIpLocations.lookup('127.0.0.1')
user.country.should == location[:country]