#241 Simple OmniAuth (revised) Jun 02, 2012 | 11 minutes | Authentication , Plugins OmniAuth makes it easy to do user authentication through a third party provider such as Twitter or Facebook. Learn a simple approach in this episode. Subscribe to Watch Episode Tweet Show Notes 2 Comme...
, a participant who just graduated, has to say – “When I joined this course I was sceptical about how useful this course would be for me instead of reading material and watching videos on YouTube and thus saving money. After the course started I realised how valuable this course was. ...
Actually, once you understand this algorithm, I think the best place to go next would be to change it to a breadth-first traversal. The intuition here is that a maze is an undirected graph, and this algorithm constructs the maze by traversing that graph in depth-first order. This is d...
There is a new way to communicate with your fellow Ruby developers. Introducing the new Facebook group for the Ruby Programming Language . This group will allow for developers to communicate with fellow Ruby programmers and provide a means for collaborative solutions to problems membe...
ghtorrent 0.2 A library and a collection of associated programs to mirror and process Github data install gem install ghtorrent Download Documentation Subscribe Stats Authors Georgios Gousios, Diomidis Spinellis 76 total downloads 76 for this version Owners Links Homepage Gemfile gem ...
Posted June 02, 2012 by schof | Comments It’s been almost five years now since I began the Spree project. It started with a blog post and a strongly held conviction that there had to be a better way to do e-commerce. In the past week we have also reached two symbolic milestones. 3,000...
Apesar de já estar ha algum tempo disponível, existem pouquissimos materiais em português sobre Shoes. Por isso, vamos publicar um pequeno tutorial sobre a linguagem em três partes. Na primeira parte, umas dicas básicas; na segunda, uma pequena tela de login, e na terceira, uma aplica...
To demonstrate Rack Middleware we’re going to use the simple e-commerce application seen in previous episodes. We’d like to know how long each request takes to process so we’re going to use Middleware to inject an HTML comment into each page that contains the processing time. This is ...
<p>これが次のように表示されます。コードサンプルは、<code>lang</code>要素で言語を定義した<code>pre</code>タグで囲まれています。</p> <div class="imageWrapper"> <img src="http://asciicasts.com/system/photos/696/original/E272I06.png" width="802" height="428" alt="コードブロックが表示された"/> </div> <p>従来の方式のFenced Codeで、バッククォート(`)の代わりにチルダ(~)を使っ...
参照渡し (call by reference) とは、変数のメモリ番地を渡す渡し方です。これにより、あたかも変数が共有されたような状態になります。 リスト 4 をご覧ください。これは list3 と同じコードですが、もし Ruby が参照渡しだったとしたら、最後の行の出力結果が list3 とは異なるはずです。 list4. もし Ruby が参照渡しだったとした場合 def foo(a, b) # a, b を「仮引数」という a += 1 b += 2 # a と b を変更する end x = 10 y = 20 foo(x, y) # x, y を「実引...
We’ve covered each of these topics individually in previous episodes, but it can be difficult sometimes to bring all of these features together, especially if we want an application to be Rails 3 compatible and the functionality to work through AJAX. As the most complex part of this i...
On Mar 6, 1:21 pm, Daniel Mendler <dmend...@wurzelteiler.de> wrote: > > vs. > > class Library::Book > end The later will give an error if Library isn't yet defined (personally I with is would just auto-instantiate a new module). Also the lookup of constants resolves differently. For e...
bundle rails g rspec:install mkdir spec/support spec/models spec/routing guard init rspec gem install rb-fsevent rails g integration_test password_reset rails g controller password_resets new --no-test-framework rails g mailer user_mailer password_reset rails g migration add_password_...
October 14, 2010 Posted by John Tagged rants Older: Building an Object Mapper: Override-able Accessors Newer: The Chain Gang Stop Googling Yesterday, one of my inter-web buddies IM’d me and asked if I had used Typhoeus before. I said yes, so he asked me if it was possible to follow re...
It's been a while since I was able to work on JRuby's Android support, but tonight I managed to finally circle back. And I've got something much more impressive working today: a real IRB application! (And yes, this works just fine on the phone too) It turned out to be incredibly easy ...
Squeel provides a comprehensive DSL for writing SQL queries in Ruby. It is built upon Arel giving you access to many of its powerful features.
Harker means Rails deployments via RubyGems--because a package manager is a terrible thing to waste.
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...
configures Rails itself to serve static assets. Defaults to true, but in the production environment is turned off as the server software (e.g. Nginx or Apache) used to run the application should serve static assets instead. Unlike the default setting set this to true when running (abs...
Another advantage of messaging is that, if designed properly, you could experience no downtime when redeploying backend services . Consider the scenario with uploading images I mentioned previously. If the communication were synchronous and the "scaler" were down, any request to the s...
A gem to provide easy switching between different JSON backends, including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, and OkJson.