Advanced Rails - Building Industrial-Strength Web Apps in Record Time
Plugin Examples | 85 README It is helpful to provide a short explanation here of the plugin’s purpose, usage, and any special in ...
86 | Chapter 3: Rails Plugins class ApplicationController < ActionController::Base include AccountLocation end puts Applicati ...
Plugin Examples | 87 def account_subdomain request.subdomains.first end end Theself.includedmethod is a standard idiom for plugi ...
88 | Chapter 3: Rails Plugins write_inheritable_array(:ssl_required_actions, actions) end def ssl_allowed(*actions) write_inheri ...
Plugin Examples | 89 HTTP Authentication The final plugin we will examine is thehttp_authenticationplugin, which allows you to p ...
90 | Chapter 3: Rails Plugins def authenticate_with_http_basic(&login_procedure) HttpAuthentication::Basic.authenticate(self ...
Testing Plugins | 91 Unlike in the Rails plugin initializer, when running tests, load paths are not set up automatically, andDe ...
92 | Chapter 3: Rails Plugins TheClass.new do ... end.newsyntax creates an instance of an anonymous class with the provided clas ...
Testing Plugins | 93 class SslRequirementTest < Test::Unit::TestCase def setup @controller = SslRequirementController.new @re ...
94 | Chapter 3: Rails Plugins To make this work, a set of test model objects and corresponding fixtures are included in the plug ...
Further Reading | 95 Now, the test (acts_as_state_machine_test.rb) can reference ActiveRecord classes and their fixture data jus ...
96 Chapter 4CHAPTER 4 Database 4 All non-trivial abstractions, to some degree, are leaky. —Joel Spolsky For many developers, Rai ...
Database Management Systems | 97 PostgreSQL I list PostgreSQL*first because it is my platform of choice. It is one of the most a ...
98 | Chapter 4: Database MySQL The MySQL DBMS is controversial. Some hold it to be a toy, while others consider it to be a good ...
Database Management Systems | 99 to need it.” Even transactions are not supported with the default storage engine (MyISAM) to th ...
100 | Chapter 4: Database SQLite SQLite is a minimalist database that is excellent for small projects. Although it does not supp ...
Large/Binary Objects | 101 However, the Oracle client library still maps net service names to connection speci- fications, so th ...
102 | Chapter 4: Database Database Storage The DBA types among us might prefer database storage of large objects. From a the- or ...
Large/Binary Objects | 103 thepg_largeobjectcatalog is global to the database, and accessible by anyone with permission to conne ...
104 | Chapter 4: Database Why Is Filesystem Storage So Fast? The short answer is that web servers are optimized for throwing bin ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf