This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// EvstReverseAuthExample.m | |
// Everest | |
// | |
// Created by Rob Phillips on 3/14/14. | |
// | |
#import <Accounts/Accounts.h> | |
#import "EvstReverseAuthExample.h" | |
#import "AFOAuth1Client.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread : Crashed: com.apple.main-thread | |
0 libobjc.A.dylib 0x3a0b1214 bool objc::DenseMapBase<objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*> >, objc_object*, unsigned long, objc::DenseMapInfo<objc_object*>, true>::LookupBucketFor<objc_object*>(objc_object* const&, std::__1::pair<objc_object*, unsigned long> const*&) const + 3 | |
1 libobjc.A.dylib 0x3a0b1013 objc::DenseMapBase<objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*> >, objc_object*, unsigned long, objc::DenseMapInfo<objc_object*>, true>::find(objc_object* const&) + 22 | |
2 libobjc.A.dylib 0x3a0b1013 objc::DenseMapBase<objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*> >, objc_object*, unsigned long, objc::DenseMapInfo<objc_object*>, true>::find(objc_object* const&) + 22 | |
3 libobjc.A.dylib 0x3a0afaf3 objc_object::sidetable_release(bool) + 54 | |
4 Everest 0x001e319d -[JDSt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def link_to_with_highlight(name, options = {}, html_options = {}) # same sig as #link_to | |
html_options.merge!({ :class => 'active' }) if current_page?(options) | |
link_to(name, options, html_options) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/views/layout/application.rb | |
<html> | |
<head> | |
<%= yield :head %> | |
... | |
# app/views/foobars/index.html.erb | |
<% content_for :head do %> | |
<script type='text/javascript'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<%= render :partial => 'foo_row', :collection => @foobars %> | |
</table> | |
# _foo_row.html.erb | |
<tr> | |
<td> | |
<%= foobar.name %> | |
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config/initializers/requires.rb | |
Dir[File.join(Rails.root, 'lib', '*.rb')].each do |f| | |
require f | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= link_to "Link name", | |
{ :controller => 'controller_name', :action => 'action_name' }, | |
:class => 'someclass' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= link_to "Sign out", signout_path, | |
:method => :delete, | |
:class => "nohover tl light" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root /(.:format) {:controller=>"users", :action=>"new"} | |
sessions POST /sessions(.:format) {:action=>"create", :controller=>"sessions"} | |
new_session GET /sessions/new(.:format) {:action=>"new", :controller=>"sessions"} | |
session DELETE /sessions/:id(.:format) {:action=>"destroy", :controller=>"sessions"} | |
user_favorite GET /users/:user_id/favorites/:id(.:format) {:action=>"show", :controller=>"favorites"} | |
PUT /users/:user_id/favorites/:id(.:format) {:action=>"update", :controller=>"favorites"} | |
user_profile GET /users/:user_id/profile/:id(.:format) {:action=>"show", :controller=>"profile"} | |
PUT /users/:user_id/profile/:id(.:format) {:action=>"update", :controller=>"profile"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kickOffAjax(){ | |
// we dont want to fire the ajax multiple times | |
opts.isDuringAjax = true; | |
// show the loading message quickly | |
// then hide the previous/next links after we're | |
// sure the loading message was visible | |
props.loadingMsg.appendTo( opts.loadMsgSelector ).show(opts.loadingMsgRevealSpeed, function(){ | |
$( opts.navSelector ).hide(); |
OlderNewer