These are chat archives for Sammykhaleel/RATAFIRE

5th
Mar 2015
Sammy khaleel
@Sammykhaleel
Mar 05 2015 00:09
I mean we can't use login them version because we already have in devise registration page. do have any thought a bout it.
Fari Liang
@fariliang
Mar 05 2015 00:16
See the login on the homepage?
It is not a devise page, but you are able to log in there.
You can copy the form of login on the homepage to any other page and it will work.
Sammy khaleel
@Sammykhaleel
Mar 05 2015 00:30
devise registration page looks like this
<!--~~~~~~~~~~~~~~~~~~~~~~~~ Before ~~~~~~~~~~~~~~~~~~~~~~~~-->
    <!-- Page Title -->
    <% provide(:title, "Sign in")%>

      <!-- Page Background -->
      <!DOCTYPE html>
      <html style="background: url(/assets/background1.jpg) no-repeat center center fixed; 
      -webkit-background-size: cover;
      -moz-background-size: cover;
       -o-background-size: cover;
      background-size: cover;"><!-- Signup Page Background -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~ Sidebar ~~~~~~~~~~~~~~~~~~~~~~~~-->
<!--~~~~~~~~~~~~~~~~~~~~~~~~ Page Contents ~~~~~~~~~~~~~~~~~~~~~~~~-->

<!-- Sign Up -->
<div class="user-links">
    Do not have an account? <%= link_to 'Sign up', new_user_registration_path, class:"no_ajaxify" %>
</div>

<div class="center" style="width: 310px;">

    <!-- Cutter --><ol style="margin-top: 80px;"></ol>

    <span id="Join-Ratafire">Sign in.</span>

    <!-- Cutter --><ol style="margin-top: 18px;"></ol>

    <div id="Signin-box">

        <!-- Signin Form -->
        <%= form_for(resource, :as => resource_name, :url => session_path(resource_name),:html => {:class => "no_ajaxify"}) do |f| %>

        <ol>
            <%= f.text_field :email, class: "inputbox signupbox", placeholder: "Email" %>
        </ol>
        <ol>
            <%= f.password_field :password, class: "inputbox signupbox", placeholder: "Password" %>
        </ol>
        <ul>
            <% if devise_mapping.rememberable? -%>
            <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
            <% end -%>
            <%= link_to "Forgot password?", new_password_path(resource_name) %>
        </ul>
        <ol style="margin-top: 15px; padding-left: 157px;">
            <%= f.submit "SIGN IN", class: "btn-submit btn-submit-small btn btn-small2 btn-small-blue" %>
        </ol>
        <% end %>

    </div><!-- end of Signin-box -->

</div><!-- end of center-->

<!-- Footer -->
<div style="padding: 0px 20px 18px 0; margin-top: 287px;">
    <%= render 'layouts/footer' %>
</div>

</html>
Fari Liang
@fariliang
Mar 05 2015 00:55
                    <!-- Signin Form -->
                    <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => 'no_ajaxify'}) do |f| %>

                          <ol>
                              <%= f.text_field :email, class: "inputbox signupbox2", placeholder: "Email" %>
                          </ol>
                          <ol>
                              <%= f.password_field :password, class: "inputbox signupbox2", placeholder: "Password" %>
                          </ol>
                          <ol style="margin-top:15px;color:#999;margin-left:120px;">
                              <% if devise_mapping.rememberable? -%>
                            <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
                              <% end %>
                          </ol>
                          <ol>
                          <%= link_to "Forgot your password?", new_password_path(resource_name), class:"no_ajaxify", style:"margin-left:150px;" %>
                         </ol>
                        <ol style="margin-top: -35px; padding-left: 418px;">
                            <div id="submit">
                                <%= f.submit "SIGN IN", class: "btn-submit btn-submit-small btn btn-small2 btn-small-blue" %>
                            </div>
                        </ol>
                    <div class="signupshow-signup" style="margin-top: -32px; margin-left: 180px;" id="signupshow-signup">
                        Sign Up
                    </div>                            
                    <% end %>
This is the Signin form.
    <!-- Signup Form -->
        <div class="signupshow-signup-form-home" id="signupshow-signup-form">    
            <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :validate => true, :html => { :class => 'no_ajaxify'}) do |f| %>
                <ol>
                    <%= f.text_field :fullname, class: "inputbox signupbox2", placeholder: "First and Last Name", :live => true %>
                </ol>
                <ol>
                    <%= f.text_field :email, class: "inputbox signupbox2", placeholder: "Email Address" %>
                </ol>
                <ol>
                    <%= f.password_field :password, class: "inputbox signupbox2", placeholder: "Password" %>
                </ol>
                <ol>
                    <%= f.text_field :username, class: "inputbox signupbox2",  placeholder: "Pick a username"%>
                </ol>    
                <div class="signupshow-signin" id="signupshow-signin" style="margin-top: 20px; margin-left: 310px;">
                    Sign In
                </div>    

                <ol style="margin-top: 15px; padding-left: 418px;">
                    <%= f.submit "JOIN", class: "btn-submit btn-submit-small btn btn-small2 btn-small-green", id:"email-signup" %>
                </ol>

                <div style="margin-top: -32px; margin-left: 280px;" id="signup-with-facebook-button">
                    <%= link_to image_tag("/assets/facebook.png"), user_omniauth_authorize_path(:facebook), class:"no_ajaxify" %>
                </div>
            <% end %>
        </div><!-- end .signupshow-signup-form-->
This is the Signup form.
Fari Liang
@fariliang
Mar 05 2015 19:39
I have sent you some materials for Saturday. Come up with a 1 minute short introduction from it, and then when we are at the table on Saturday, both of us can talk about Ratafire with those who come around.
Fari Liang
@fariliang
Mar 05 2015 20:02
I have also submitted the Techstars.
Sammy khaleel
@Sammykhaleel
Mar 05 2015 21:40
Awesome how are you doing with the API?
Fari Liang
@fariliang
Mar 05 2015 22:56
We have to be registered as a Solution provider, and I am talking to Amazon for it.
Fari Liang
@fariliang
Mar 05 2015 23:03
There is a Gem today.......omg
This person is saving the world....
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:03
haha i told you some will come up with solution.
Fari Liang
@fariliang
Mar 05 2015 23:04
Let me see if it is possible to change the Gem to do what we want, for it may be only for the buyer -> seller actions. However, how to call the API is in the Gem...
We should find a way to contact this person, and thank him for doing so.
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:08
and buy him a bear
*beer
Fari Liang
@fariliang
Mar 05 2015 23:08
Yeah, if he is on Ratafire, I will subscribe to him. I am emailing him now. He is in London...
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:09
there is more gems will come you will see
Fari Liang
@fariliang
Mar 05 2015 23:10
I agree. He is the first. Let's thanking and encourage him to build it to be even better... (I suddenly think I am so evil)
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:10
hehe
Fari Liang
@fariliang
Mar 05 2015 23:15
OMG, you see why I spent the first few days in the week to learn some strategies again...now it is time to use it.
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:16
let's so we can practice and prepare
Fari Liang
@fariliang
Mar 05 2015 23:25
Sure. Do you want to practice talking about Ratafire before Saturday.
Sammy khaleel
@Sammykhaleel
Mar 05 2015 23:36
Tomorrow?