These are chat archives for Sammykhaleel/RATAFIRE

6th
Mar 2015
Fari Liang
@fariliang
Mar 06 2015 00:07
Good idea. Do you want to meet at the lab?
Sammy khaleel
@Sammykhaleel
Mar 06 2015 00:53
Sure
Fari Liang
@fariliang
Mar 06 2015 00:54
When?
Sammy khaleel
@Sammykhaleel
Mar 06 2015 00:54
Hmm idk yet
Fari Liang
@fariliang
Mar 06 2015 00:54
Have you done the signup page? If so, can I change some of its styling tonight?
Sammy khaleel
@Sammykhaleel
Mar 06 2015 00:57
Ok this what happen when implement the mobile template into fresh rails app it works but when put it in ratafire the buttons does not respond i think there is some conflict in the css, we can work on that tomorrow too.
Fari Liang
@fariliang
Mar 06 2015 00:58
Ok. That will do.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 00:58
also i had to defined three methods in the application controller to make devise signup form woks outside of devise files.
Fari Liang
@fariliang
Mar 06 2015 00:58
You don't.
See the def home in static_pages_controllers.rb?
There is no method of sign up in it.
Because the forms I showed you are devise forms.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 00:59
Nop
Fari Liang
@fariliang
Mar 06 2015 00:59
They will call the devise method directly.
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :validate => true, :html => { :class => 'no_ajaxify'}) do |f| %>
Sammy khaleel
@Sammykhaleel
Mar 06 2015 01:00
yes
what is resource?
this what i meant
will give an error if put the form like that on any page outside divise files
anyway i get it to work with these three methods
def resource_name    :user  end  def resource    @resource ||= User.new  end  def devise_mapping    @devise_mapping ||= Devise.mappings[:user]  end  helper_method :resource, :resource_name, :devise_mapping
Fari Liang
@fariliang
Mar 06 2015 01:03
Interesting, how come the one on the homepage works?
Sammy khaleel
@Sammykhaleel
Mar 06 2015 01:03
because you call the routes
not the form
Fari Liang
@fariliang
Mar 06 2015 01:04
You are right. So calling the routes will do.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 01:04
yes but when i do that in the mobile views will show me ratafire form theme
Fari Liang
@fariliang
Mar 06 2015 01:05
Ok.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 01:07
i defently need your help with the css
Fari Liang
@fariliang
Mar 06 2015 01:09
Ok. We will do that as well.
Let's meet earlier in the afternoon in the lab then.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 01:10
ok
Fari Liang
@fariliang
Mar 06 2015 03:59
Are you able to get there at 2?
Sammy khaleel
@Sammykhaleel
Mar 06 2015 04:19
not sure yet. ill let you know soon
Fari Liang
@fariliang
Mar 06 2015 04:19
Ok
Sammy khaleel
@Sammykhaleel
Mar 06 2015 17:42
would you be able to meet after 5? i got to do some things before that.
Fari Liang
@fariliang
Mar 06 2015 17:42
Ok.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 17:43
Awesome
Fari Liang
@fariliang
Mar 06 2015 19:25
I will be in some networking events in nyu. Let me know when you are here.
Fari Liang
@fariliang
Mar 06 2015 22:00
Are you there yet?
Fari Liang
@fariliang
Mar 06 2015 22:23
Come to stern, the lab is not open.
Sammy khaleel
@Sammykhaleel
Mar 06 2015 22:37
What stern?
Fari Liang
@fariliang
Mar 06 2015 22:38
Where Are you now?
I am in starbucks.
Look for me there first and then we go into stern.
We should do this very quick and then go to the networking event.