サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ブラックフライデー
railscasts.com
watch on iTunes follow on Twitter follow on Facebook subscribe to RSS feed RailsCasts Pro episodes are now free! June 27, 2017 It has been four years since I last produced a RailsCasts episode, and I feel it is time to release all paid content for free. Anyone can now watch all Pro and Revised episodes! Thank you very much to everyone who supported me. You have all helped change my life in a big w
The cache_digests gem (also included in Rails 4) will automatically add a digest to the fragment cache key based on the template. If a template changes the cache will auto-expire. But watch out for the gotchas!
watch on iTunes follow on Twitter follow on Facebook subscribe to RSS feed Updated RailsCasts Status I had originally planned to return to RailsCasts on September 2, however I do not feel ready yet. I don't want to return until I am fully ready to avoid getting burnt out. It is hard to predict exactly when that will be, but in the meantime I have extended all subscriptions automatically by another
It is easy to create authentication from scratch, but how do we extend it with more features? Here I add a "remember me" check box and a "forgotten password" link.
watch on iTunes follow on Twitter follow on Facebook subscribe to RSS feed
Download: source codeProject Files in Zip (49.7 KB)mp4Full Size H.264 Video (31.1 MB)m4vSmaller H.264 Video (18.5 MB)webmFull Size VP8 Video (18.4 MB)ogvFull Size Theora Video (50.3 MB) 今回のエピソードで紹介するZurb Foundationは、エピソード328で紹介したTwitter Bootstrapと同類のフロントエンドのフレームワークです。これら2つの大きな違いは、FoundationがLESSではなくSASS上に構築されているという点で、それによってRailsアプリケーションにより統合しやすくなっています。 Foundation入門 Foundationを実際に試すために、新規のRailsアプリケ
The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.
Download: source codeProject Files in Zip (63.4 KB)mp4Full Size H.264 Video (35.6 MB)m4vSmaller H.264 Video (17.7 MB)webmFull Size VP8 Video (18.6 MB)ogvFull Size Theora Video (46.4 MB) 先週のRailsConfでRails 4.0のRC1が発表されました。この機会に自分のアプリケーションをRails 4にアップグレードし、動作確認をして、見つけたバグを報告してみてはいかがでしょうか。Rails 4の新機能の多くについてエピソード400で紹介したので、今回はRails 3.2のアプリケーションをアップグレードする方法に焦点をあてます。そうすることによって、自分のアプリケーションを使って順を追って理解することが
gem 'rails', '4.0.0.rc1' gem 'sqlite3' gem 'sass-rails', '~> 4.0.0.rc1' gem 'coffee-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' gem 'jquery-rails' gem 'paper_trail', github: 'airblade/paper_trail', branch: 'rails4' # add these gems to help with the transition: gem 'protected_attributes' gem 'rails-observers' gem 'actionpack-page_caching' gem 'actionpack-action_caching'
Allow users to import records into the database by uploading a CSV or Excel document. Here I show how to use Roo to parse these files and present a solution for validations.
Rails commands, such as generators, migrations, and tests, have a tendency to be slow because they need to load the Rails app each time. Here I show three tools to make this faster: Zeus, Spring, and Commands.
Here we take a look at two tools to aid us in development: Better Errors which makes it easier than ever to debug exceptions, and RailsPanel, a Chrome extension to see Rails requests.
Learn how to easily add a user activity feed using the public_activity gem. Here I show both the default setup using model callbacks and a manual way to trigger activities.
If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution.
AngularJS is an awesome framework for easily creating rich, client-side applications. Its powerful bindings allow you to do a lot with very little code. Here I show how to integrate Angular with a Rails app.
Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features.
FnordMetric allows you to chart events in real time. This is great for keeping track of user activity in your Rails app as demonstrated in this episode.
Turbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas.
git clone https://github.com/rails/rails.git cd rails bundle gem install bundler --pre bundle railties/bin/rails new ~/code/blog --edge -d postgresql mate ~/code/blog cd ~/code/blog rake db:create rails g scaffold article name content:text published_on:date tags properties:hstore rake db:migrate rails c Article.create! name: "Hello", tags: %w[ruby rails], properties: {author: "Ryan"} Article.first
Download: source codeProject Files in Zip (59.6 KB)mp4Full Size H.264 Video (30.6 MB)m4vSmaller H.264 Video (13.4 MB)webmFull Size VP8 Video (14.5 MB)ogvFull Size Theora Video (29.4 MB) Railsには、実行時間の長いジョブをバックグラウンドプロセスに移すためのツールがいくつもあります。それぞれが固有の長所を持っていますが、Sidekiqも例外ではありません。Sidekiqは、エピソード271で取り上げたResqueに似ています。主な違いは、プロセスの代わりにスレッドを使用することによって複数のジョブを同時実行しメモリ使用量を節約できるという点です。 スニペットアプリケーション Sidekiqのインターフェー
Download: source codeProject Files in Zip (107 KB)mp4Full Size H.264 Video (17 MB)m4vSmaller H.264 Video (11.5 MB)webmFull Size VP8 Video (30.4 MB)ogvFull Size Theora Video (25.2 MB) In this episode we’re going to show you how to make a table sortable by clicking on one of its columns. Below is a page from a store application that shows a list of products in a table. We want to be able to sort the
Instead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards.
開発しているRailsアプリケーションの動きが少し遅くなり始めたとしましょう。パフォーマンスを最適化しなければいけないところですが、その前にプロファイリングツールを実行してボトルネックを見つけておく方がいいでしょう。プロファイリングツールは多くの種類がありますが、今回のエピソードではMiniProfilerを紹介します。このツールは元々は.Netの開発環境用に作られたものですが、最近Ruby向けに移植され、Railsアプリケーションのプロファイリングのための優れたツールとなっています。アプリケーションにMiniProfilerを追加するのは簡単です。gemfileにgemを追加してbundleコマンドを実行してインストールを行なうだけです。
Ransack allows you to easily build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page.
Bullet will notify you of database queries that can potentially be improved through eager loading or counter cache column. A variety of notification alerts are supported.
次のページ
このページを最初にブックマークしてみませんか?
『Ruby on Rails Screencasts - RailsCasts』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く