├── public ├── favicon.ico ├── images │ └── rails.png ├── photos │ └── 0000 │ │ ├── 0009 │ │ ├── IMG_0017.jpg │ │ └── IMG_0017_thumb.jpg │ │ ├── 0005 │ │ ├── Ferrofluid__Cream.jpg │ │ └── Ferrofluid__Cream_thumb.jpg │ │ ├── 0007 │ │ ├── Ferrofluid__Spike.jpg │ │ └── Ferrofluid__Spike_thumb.jpg │ │ └── 0011 │ │ ├── Tokyo_trails_close-up.jpg │ │ └── Tokyo_trails_close-up_thumb.jpg ├── robots.txt ├── dispatch.rb └── dispatch.cgi ├── vendor ├── rails │ ├── railties │ │ ├── html │ │ │ ├── favicon.ico │ │ │ ├── images │ │ │ │ └── rails.png │ │ │ ├── javascripts │ │ │ │ └── application.js │ │ │ └── robots.txt │ │ ├── configs │ │ │ ├── empty.log │ │ │ ├── initializers │ │ │ │ ├── mime_types.rb │ │ │ │ └── inflections.rb │ │ │ └── databases │ │ │ │ ├── sqlite2.yml │ │ │ │ └── sqlite3.yml │ │ ├── lib │ │ │ ├── rails_generator │ │ │ │ ├── generators │ │ │ │ │ ├── components │ │ │ │ │ │ ├── mailer │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── view.rhtml │ │ │ │ │ │ │ │ ├── fixture.rhtml │ │ │ │ │ │ │ │ ├── view.erb │ │ │ │ │ │ │ │ ├── fixture.erb │ │ │ │ │ │ │ │ └── mailer.rb │ │ │ │ │ │ ├── plugin │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── init.rb │ │ │ │ │ │ │ │ ├── plugin.rb │ │ │ │ │ │ │ │ ├── install.rb │ │ │ │ │ │ │ │ ├── uninstall.rb │ │ │ │ │ │ │ │ ├── tasks.rake │ │ │ │ │ │ │ │ ├── USAGE │ │ │ │ │ │ │ │ ├── unit_test.rb │ │ │ │ │ │ │ │ ├── generator.rb │ │ │ │ │ │ │ │ └── README │ │ │ │ │ │ ├── controller │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ ├── view.html.erb │ │ │ │ │ │ │ │ ├── controller.rb │ │ │ │ │ │ │ │ └── functional_test.rb │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── model.rb │ │ │ │ │ │ │ │ ├── unit_test.rb │ │ │ │ │ │ │ │ ├── migration.rb │ │ │ │ │ │ │ │ └── fixtures.yml │ │ │ │ │ │ ├── resource │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ ├── controller.rb │ │ │ │ │ │ │ │ └── functional_test.rb │ │ │ │ │ │ ├── scaffold │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ ├── view_show.html.erb │ │ │ │ │ │ │ │ ├── view_new.html.erb │ │ │ │ │ │ │ │ └── view_edit.html.erb │ │ │ │ │ │ ├── observer │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ ├── observer.rb │ │ │ │ │ │ │ │ └── unit_test.rb │ │ │ │ │ │ │ └── USAGE │ │ │ │ │ │ ├── integration_test │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── integration_test.rb │ │ │ │ │ │ │ └── USAGE │ │ │ │ │ │ └── session_migration │ │ │ │ │ │ │ ├── USAGE │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ └── migration.rb │ │ │ │ │ └── applications │ │ │ │ │ │ └── app │ │ │ │ │ │ └── USAGE │ │ │ │ └── scripts │ │ │ │ │ ├── generate.rb │ │ │ │ │ └── update.rb │ │ │ ├── railties_path.rb │ │ │ ├── commands │ │ │ │ ├── about.rb │ │ │ │ ├── update.rb │ │ │ │ ├── performance │ │ │ │ │ └── request.rb │ │ │ │ ├── destroy.rb │ │ │ │ ├── generate.rb │ │ │ │ └── servers │ │ │ │ │ └── new_mongrel.rb │ │ │ ├── rails │ │ │ │ ├── version.rb │ │ │ │ └── gem_builder.rb │ │ │ ├── tasks │ │ │ │ ├── log.rake │ │ │ │ └── rails.rb │ │ │ ├── console_sandbox.rb │ │ │ ├── ruby_version_check.rb │ │ │ └── commands.rb │ │ ├── builtin │ │ │ └── rails_info │ │ │ │ ├── rails │ │ │ │ ├── info_helper.rb │ │ │ │ └── info_controller.rb │ │ │ │ └── rails_info_controller.rb │ │ ├── bin │ │ │ ├── console │ │ │ ├── destroy │ │ │ ├── plugin │ │ │ ├── runner │ │ │ ├── server │ │ │ ├── dbconsole │ │ │ ├── generate │ │ │ ├── process │ │ │ │ ├── reaper │ │ │ │ ├── spawner │ │ │ │ └── inspector │ │ │ ├── performance │ │ │ │ ├── profiler │ │ │ │ ├── request │ │ │ │ └── benchmarker │ │ │ └── about │ │ ├── helpers │ │ │ └── application_helper.rb │ │ ├── doc │ │ │ └── README_FOR_APP │ │ ├── fresh_rakefile │ │ └── dispatches │ │ │ └── dispatch.rb │ ├── activerecord │ │ ├── test │ │ │ ├── fixtures │ │ │ │ ├── all │ │ │ │ │ ├── tasks.yml │ │ │ │ │ ├── developers.yml │ │ │ │ │ └── people.csv │ │ │ │ ├── naked │ │ │ │ │ ├── csv │ │ │ │ │ │ └── accounts.csv │ │ │ │ │ └── yml │ │ │ │ │ │ ├── accounts.yml │ │ │ │ │ │ ├── courses.yml │ │ │ │ │ │ └── companies.yml │ │ │ │ ├── fk_test_has_pk.yml │ │ │ │ ├── minimalistics.yml │ │ │ │ ├── fk_test_has_fk.yml │ │ │ │ ├── items.yml │ │ │ │ ├── warehouse-things.yml │ │ │ │ ├── legacy_things.yml │ │ │ │ ├── computers.yml │ │ │ │ ├── reserved_words │ │ │ │ │ ├── distinct.yml │ │ │ │ │ ├── select.yml │ │ │ │ │ ├── values.yml │ │ │ │ │ ├── group.yml │ │ │ │ │ └── distincts_selects.yml │ │ │ │ ├── author_addresses.yml │ │ │ │ ├── author_favorites.yml │ │ │ │ ├── vertices.yml │ │ │ │ ├── members.yml │ │ │ │ ├── tags.yml │ │ │ │ ├── people.yml │ │ │ │ ├── ships.yml │ │ │ │ ├── jobs.yml │ │ │ │ ├── courses.yml │ │ │ │ ├── movies.yml │ │ │ │ ├── mixed_case_monkeys.yml │ │ │ │ ├── owners.yml │ │ │ │ ├── books.yml │ │ │ │ ├── fixture_database.sqlite3 │ │ │ │ ├── projects.yml │ │ │ │ ├── edges.yml │ │ │ │ ├── fixture_database_2.sqlite3 │ │ │ │ ├── readers.yml │ │ │ │ ├── subscribers.yml │ │ │ │ ├── mateys.yml │ │ │ │ ├── authors.yml │ │ │ │ ├── price_estimates.yml │ │ │ │ ├── clubs.yml │ │ │ │ ├── categories │ │ │ │ │ ├── subsubdir │ │ │ │ │ │ └── arbitrary_filename.yml │ │ │ │ │ └── special_categories.yml │ │ │ │ ├── funny_jokes.yml │ │ │ │ ├── categories_ordered.yml │ │ │ │ ├── treasures.yml │ │ │ │ ├── pets.yml │ │ │ │ ├── tasks.yml │ │ │ │ ├── entrants.yml │ │ │ │ ├── pirates.yml │ │ │ │ ├── categories.yml │ │ │ │ ├── subscriptions.yml │ │ │ │ ├── parrots_pirates.yml │ │ │ │ ├── references.yml │ │ │ │ ├── categorizations.yml │ │ │ │ ├── sponsors.yml │ │ │ │ ├── developers.yml │ │ │ │ ├── developers_projects.yml │ │ │ │ ├── categories_posts.yml │ │ │ │ ├── customers.yml │ │ │ │ ├── accounts.yml │ │ │ │ ├── taggings.yml │ │ │ │ ├── memberships.yml │ │ │ │ └── parrots.yml │ │ │ ├── models │ │ │ │ ├── binary.rb │ │ │ │ ├── guid.rb │ │ │ │ ├── default.rb │ │ │ │ ├── task.rb │ │ │ │ ├── minimalistic.rb │ │ │ │ ├── course.rb │ │ │ │ ├── entrant.rb │ │ │ │ ├── ship.rb │ │ │ │ ├── joke.rb │ │ │ │ ├── keyboard.rb │ │ │ │ ├── legacy_thing.rb │ │ │ │ ├── pet.rb │ │ │ │ ├── owner.rb │ │ │ │ ├── reader.rb │ │ │ │ ├── column_name.rb │ │ │ │ ├── mixed_case_monkey.rb │ │ │ │ ├── movie.rb │ │ │ │ ├── reference.rb │ │ │ │ ├── computer.rb │ │ │ │ ├── subscription.rb │ │ │ │ ├── price_estimate.rb │ │ │ │ ├── matey.rb │ │ │ │ ├── subject.rb │ │ │ │ ├── categorization.rb │ │ │ │ ├── auto_id.rb │ │ │ │ ├── warehouse_thing.rb │ │ │ │ ├── item.rb │ │ │ │ ├── sponsor.rb │ │ │ │ ├── job.rb │ │ │ │ ├── book.rb │ │ │ │ ├── treasure.rb │ │ │ │ ├── membership.rb │ │ │ │ ├── subscriber.rb │ │ │ │ ├── order.rb │ │ │ │ ├── tag.rb │ │ │ │ ├── edge.rb │ │ │ │ ├── club.rb │ │ │ │ ├── citation.rb │ │ │ │ ├── pirate.rb │ │ │ │ ├── parrot.rb │ │ │ │ ├── vertex.rb │ │ │ │ ├── member.rb │ │ │ │ ├── tagging.rb │ │ │ │ ├── person.rb │ │ │ │ └── contact.rb │ │ │ ├── assets │ │ │ │ ├── example.log │ │ │ │ └── flowers.jpg │ │ │ ├── migrations │ │ │ │ ├── duplicate │ │ │ │ │ ├── 3_foo.rb │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ ├── 2_we_need_reminders.rb │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ ├── duplicate_names │ │ │ │ │ ├── 20080507052938_chunky.rb │ │ │ │ │ └── 20080507053028_chunky.rb │ │ │ │ ├── interleaved │ │ │ │ │ ├── pass_3 │ │ │ │ │ │ ├── 2_i_raise_on_down.rb │ │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ │ ├── pass_2 │ │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ │ └── pass_1 │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ ├── missing │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ ├── 1000_people_have_middle_names.rb │ │ │ │ │ ├── 3_we_need_reminders.rb │ │ │ │ │ └── 4_innocent_jointable.rb │ │ │ │ ├── valid │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ ├── 2_we_need_reminders.rb │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ └── decimal │ │ │ │ │ └── 1_give_me_big_numbers.rb │ │ │ ├── schema │ │ │ │ ├── sqlserver_specific_schema.rb │ │ │ │ ├── schema2.rb │ │ │ │ └── mysql_specific_schema.rb │ │ │ ├── config.rb │ │ │ ├── cases │ │ │ │ ├── connection_test_firebird.rb │ │ │ │ ├── database_statements_test.rb │ │ │ │ ├── synonym_test_oracle.rb │ │ │ │ └── column_alias_test.rb │ │ │ └── connections │ │ │ │ └── native_openbase │ │ │ │ └── connection.rb │ │ ├── lib │ │ │ ├── activerecord.rb │ │ │ └── active_record │ │ │ │ ├── version.rb │ │ │ │ └── query_cache.rb │ │ └── examples │ │ │ └── associations.png │ ├── actionpack │ │ ├── test │ │ │ ├── fixtures │ │ │ │ ├── shared.html.erb │ │ │ │ ├── test │ │ │ │ │ ├── _partial.erb │ │ │ │ │ ├── _hello.builder │ │ │ │ │ ├── _partial.js.erb │ │ │ │ │ ├── _partial.html.erb │ │ │ │ │ ├── _partial_only.erb │ │ │ │ │ ├── hello_world.erb │ │ │ │ │ ├── _raise.html.erb │ │ │ │ │ ├── _customer.erb │ │ │ │ │ ├── _form.erb │ │ │ │ │ ├── greeting.erb │ │ │ │ │ ├── formatted_html_erb.html.erb │ │ │ │ │ ├── formatted_xml_erb.builder │ │ │ │ │ ├── hello_world_with_layout_false.erb │ │ │ │ │ ├── greeting.js.rjs │ │ │ │ │ ├── _labelling_form.erb │ │ │ │ │ ├── _person.erb │ │ │ │ │ ├── render_file_with_ivar.erb │ │ │ │ │ ├── render_file_with_locals.erb │ │ │ │ │ ├── formatted_xml_erb.html.erb │ │ │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ │ │ ├── render_file_from_template.html.erb │ │ │ │ │ ├── _customer_greeting.erb │ │ │ │ │ ├── _hash_greeting.erb │ │ │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ │ │ ├── render_to_string_test.erb │ │ │ │ │ ├── _layout_for_partial.html.erb │ │ │ │ │ ├── dot.directory │ │ │ │ │ │ └── render_file_with_ivar.erb │ │ │ │ │ ├── _customer_counter.erb │ │ │ │ │ ├── action_talk_to_layout.erb │ │ │ │ │ ├── capturing.erb │ │ │ │ │ ├── _hash_object.erb │ │ │ │ │ ├── content_for.erb │ │ │ │ │ ├── hello_world_from_rxml.builder │ │ │ │ │ ├── block_content_for.erb │ │ │ │ │ ├── content_for_with_parameter.erb │ │ │ │ │ ├── delete_with_js.rjs │ │ │ │ │ ├── erb_content_for.erb │ │ │ │ │ ├── hello.builder │ │ │ │ │ ├── hello_world_container.builder │ │ │ │ │ ├── content_for_concatenated.erb │ │ │ │ │ ├── non_erb_block_content_for.builder │ │ │ │ │ ├── list.erb │ │ │ │ │ ├── using_layout_around_block.html.erb │ │ │ │ │ ├── calling_partial_with_layout.html.erb │ │ │ │ │ ├── potential_conflicts.erb │ │ │ │ │ ├── hello_xml_world.builder │ │ │ │ │ ├── enum_rjs_test.rjs │ │ │ │ │ └── update_element_with_capture.erb │ │ │ │ ├── public │ │ │ │ │ ├── 404.html │ │ │ │ │ ├── 500.html │ │ │ │ │ ├── javascripts │ │ │ │ │ │ ├── bank.js │ │ │ │ │ │ ├── robber.js │ │ │ │ │ │ ├── controls.js │ │ │ │ │ │ ├── dragdrop.js │ │ │ │ │ │ ├── effects.js │ │ │ │ │ │ ├── application.js │ │ │ │ │ │ ├── prototype.js │ │ │ │ │ │ └── version.1.0.js │ │ │ │ │ ├── stylesheets │ │ │ │ │ │ ├── bank.css │ │ │ │ │ │ ├── robber.css │ │ │ │ │ │ └── version.1.0.css │ │ │ │ │ └── images │ │ │ │ │ │ └── rails.png │ │ │ │ ├── topics │ │ │ │ │ └── _topic.html.erb │ │ │ │ ├── layout_tests │ │ │ │ │ ├── views │ │ │ │ │ │ └── hello.rhtml │ │ │ │ │ ├── alt │ │ │ │ │ │ └── hello.rhtml │ │ │ │ │ └── layouts │ │ │ │ │ │ ├── item.rhtml │ │ │ │ │ │ ├── third_party_template_library.mab │ │ │ │ │ │ ├── layout_test.rhtml │ │ │ │ │ │ ├── multiple_extensions.html.erb │ │ │ │ │ │ └── controller_name_space │ │ │ │ │ │ └── nested.rhtml │ │ │ │ ├── mascots │ │ │ │ │ └── _mascot.html.erb │ │ │ │ ├── post_test │ │ │ │ │ ├── post │ │ │ │ │ │ ├── index.html.erb │ │ │ │ │ │ └── index.iphone.erb │ │ │ │ │ ├── super_post │ │ │ │ │ │ ├── index.html.erb │ │ │ │ │ │ └── index.iphone.erb │ │ │ │ │ └── layouts │ │ │ │ │ │ ├── post.html.erb │ │ │ │ │ │ └── super_post.iphone.erb │ │ │ │ ├── fun │ │ │ │ │ └── games │ │ │ │ │ │ └── hello_world.erb │ │ │ │ ├── override2 │ │ │ │ │ └── layouts │ │ │ │ │ │ └── test │ │ │ │ │ │ └── sub.erb │ │ │ │ ├── respond_to │ │ │ │ │ ├── using_defaults.html.erb │ │ │ │ │ ├── using_defaults.xml.builder │ │ │ │ │ ├── using_defaults_with_type_list.html.erb │ │ │ │ │ ├── custom_constant_handling_without_block.mobile.erb │ │ │ │ │ ├── using_defaults.js.rjs │ │ │ │ │ ├── all_types_with_layout.html.erb │ │ │ │ │ ├── using_defaults_with_type_list.xml.builder │ │ │ │ │ ├── all_types_with_layout.js.rjs │ │ │ │ │ ├── iphone_with_html_response_type.html.erb │ │ │ │ │ ├── layouts │ │ │ │ │ │ ├── standard.html.erb │ │ │ │ │ │ ├── missing.html.erb │ │ │ │ │ │ └── standard.iphone.erb │ │ │ │ │ ├── using_defaults_with_type_list.js.rjs │ │ │ │ │ └── iphone_with_html_response_type.iphone.erb │ │ │ │ ├── scope │ │ │ │ │ └── test │ │ │ │ │ │ └── modgreet.erb │ │ │ │ ├── addresses │ │ │ │ │ └── list.erb │ │ │ │ ├── override │ │ │ │ │ └── test │ │ │ │ │ │ └── hello_world.erb │ │ │ │ ├── content_type │ │ │ │ │ ├── render_default_for_rhtml.rhtml │ │ │ │ │ ├── render_default_for_rjs.rjs │ │ │ │ │ ├── render_default_for_rxml.rxml │ │ │ │ │ └── render_default_content_types_for_respond_to.rhtml │ │ │ │ ├── customers │ │ │ │ │ └── _customer.html.erb │ │ │ │ ├── layouts │ │ │ │ │ ├── yield.erb │ │ │ │ │ ├── builder.builder │ │ │ │ │ ├── standard.erb │ │ │ │ │ ├── talk_from_action.erb │ │ │ │ │ ├── partial_with_layout.erb │ │ │ │ │ └── block_with_layout.erb │ │ │ │ ├── mascot.rb │ │ │ │ ├── mascots.yml │ │ │ │ ├── helpers │ │ │ │ │ ├── fun │ │ │ │ │ │ ├── pdf_helper.rb │ │ │ │ │ │ └── games_helper.rb │ │ │ │ │ └── abc_helper.rb │ │ │ │ ├── functional_caching │ │ │ │ │ ├── _partial.erb │ │ │ │ │ ├── html_fragment_cached_with_partial.html.erb │ │ │ │ │ ├── fragment_cached.html.erb │ │ │ │ │ └── js_fragment_cached_with_partial.js.rjs │ │ │ │ ├── symlink_parent │ │ │ │ │ └── symlinked_layout.erb │ │ │ │ ├── topic.rb │ │ │ │ ├── project.rb │ │ │ │ ├── bad_customers │ │ │ │ │ └── _bad_customer.html.erb │ │ │ │ ├── multipart │ │ │ │ │ ├── single_parameter │ │ │ │ │ ├── bracketed_param │ │ │ │ │ ├── binary_file │ │ │ │ │ ├── mixed_files │ │ │ │ │ ├── mona_lisa.jpg │ │ │ │ │ └── text_file │ │ │ │ ├── good_customers │ │ │ │ │ └── _good_customer.html.erb │ │ │ │ ├── projects.yml │ │ │ │ ├── reply.rb │ │ │ │ ├── developer.rb │ │ │ │ ├── company.rb │ │ │ │ ├── developers_projects.yml │ │ │ │ ├── replies.yml │ │ │ │ ├── developers.yml │ │ │ │ └── companies.yml │ │ │ ├── controller │ │ │ │ ├── controller_fixtures │ │ │ │ │ ├── app │ │ │ │ │ │ └── controllers │ │ │ │ │ │ │ ├── user_controller.rb │ │ │ │ │ │ │ └── admin │ │ │ │ │ │ │ └── user_controller.rb │ │ │ │ │ └── vendor │ │ │ │ │ │ └── plugins │ │ │ │ │ │ └── bad_plugin │ │ │ │ │ │ └── lib │ │ │ │ │ │ └── plugin_controller.rb │ │ │ │ ├── fake_models.rb │ │ │ │ └── header_test.rb │ │ │ ├── template │ │ │ │ └── deprecated_erb_variable_test.rb │ │ │ ├── testing_sandbox.rb │ │ │ └── adv_attr_test.rb │ │ └── lib │ │ │ ├── actionpack.rb │ │ │ ├── action_controller │ │ │ ├── templates │ │ │ │ └── rescues │ │ │ │ │ ├── unknown_action.erb │ │ │ │ │ ├── missing_template.erb │ │ │ │ │ ├── routing_error.erb │ │ │ │ │ └── diagnostics.erb │ │ │ ├── session │ │ │ │ └── mem_cache_store.rb │ │ │ ├── vendor │ │ │ │ └── html-scanner │ │ │ │ │ └── html │ │ │ │ │ └── version.rb │ │ │ ├── cgi_ext.rb │ │ │ └── caching │ │ │ │ └── sql_cache.rb │ │ │ ├── action_pack │ │ │ └── version.rb │ │ │ └── action_view │ │ │ └── inline_template.rb │ ├── actionmailer │ │ ├── lib │ │ │ ├── actionmailer.rb │ │ │ └── action_mailer │ │ │ │ ├── vendor │ │ │ │ └── tmail-1.2.3 │ │ │ │ │ ├── tmail │ │ │ │ │ ├── loader.rb │ │ │ │ │ ├── mbox.rb │ │ │ │ │ ├── main.rb │ │ │ │ │ └── index.rb │ │ │ │ │ └── tmail.rb │ │ │ │ ├── version.rb │ │ │ │ ├── utils.rb │ │ │ │ └── vendor.rb │ │ └── test │ │ │ └── fixtures │ │ │ ├── first_mailer │ │ │ └── share.erb │ │ │ ├── second_mailer │ │ │ └── share.erb │ │ │ ├── test_mailer │ │ │ ├── _subtemplate.text.plain.erb │ │ │ ├── rxml_template.rxml │ │ │ ├── rxml_template.builder │ │ │ ├── signed_up.erb │ │ │ ├── implicitly_multipart_example.text.yaml.erb │ │ │ ├── included_subtemplate.text.plain.erb │ │ │ ├── implicitly_multipart_example.ignored.erb │ │ │ ├── implicitly_multipart_example.rhtml.bak │ │ │ ├── custom_templating_extension.text.html.haml │ │ │ ├── custom_templating_extension.text.plain.haml │ │ │ ├── implicitly_multipart_example.text.plain.erb │ │ │ ├── signed_up_with_url.erb │ │ │ └── implicitly_multipart_example.text.html.erb │ │ │ ├── templates │ │ │ └── signed_up.erb │ │ │ ├── helper_mailer │ │ │ ├── use_example_helper.erb │ │ │ ├── use_helper.erb │ │ │ ├── use_helper_method.erb │ │ │ └── use_mail_helper.erb │ │ │ ├── path.with.dots │ │ │ └── funky_path_mailer │ │ │ │ └── multipart_with_template_path_with_dots.erb │ │ │ ├── helpers │ │ │ └── example_helper.rb │ │ │ ├── raw_email │ │ │ └── raw_email_with_partially_quoted_subject │ ├── activesupport │ │ └── lib │ │ │ ├── activesupport.rb │ │ │ └── active_support │ │ │ ├── core_ext │ │ │ ├── process.rb │ │ │ ├── test.rb │ │ │ ├── float.rb │ │ │ ├── cgi.rb │ │ │ ├── base64.rb │ │ │ ├── pathname.rb │ │ │ ├── bigdecimal.rb │ │ │ ├── benchmark.rb │ │ │ ├── kernel │ │ │ │ ├── daemonizing.rb │ │ │ │ ├── agnostics.rb │ │ │ │ └── debugger.rb │ │ │ ├── object.rb │ │ │ ├── class.rb │ │ │ ├── kernel.rb │ │ │ ├── integer.rb │ │ │ ├── string │ │ │ │ └── xchar.rb │ │ │ ├── array │ │ │ │ └── random_access.rb │ │ │ ├── time │ │ │ │ └── behavior.rb │ │ │ ├── proc.rb │ │ │ ├── numeric.rb │ │ │ ├── date.rb │ │ │ ├── pathname │ │ │ │ └── clean_within.rb │ │ │ ├── object │ │ │ │ └── conversions.rb │ │ │ ├── base64 │ │ │ │ └── encoding.rb │ │ │ ├── cgi │ │ │ │ └── escape_skipping_slashes.rb │ │ │ ├── range │ │ │ │ └── overlaps.rb │ │ │ ├── logger.rb │ │ │ ├── range.rb │ │ │ ├── date_time.rb │ │ │ ├── symbol.rb │ │ │ ├── name_error.rb │ │ │ └── module │ │ │ │ └── model_naming.rb │ │ │ ├── json │ │ │ ├── encoders │ │ │ │ ├── numeric.rb │ │ │ │ ├── regexp.rb │ │ │ │ ├── nil_class.rb │ │ │ │ ├── true_class.rb │ │ │ │ ├── false_class.rb │ │ │ │ ├── symbol.rb │ │ │ │ ├── object.rb │ │ │ │ ├── date.rb │ │ │ │ ├── date_time.rb │ │ │ │ ├── time.rb │ │ │ │ └── enumerable.rb │ │ │ └── variable.rb │ │ │ ├── values │ │ │ └── unicode_tables.dat │ │ │ ├── core_ext.rb │ │ │ ├── version.rb │ │ │ ├── testing │ │ │ └── default.rb │ │ │ ├── multibyte.rb │ │ │ ├── string_inquirer.rb │ │ │ ├── vendor │ │ │ ├── tzinfo-0.3.9 │ │ │ │ └── tzinfo │ │ │ │ │ └── definitions │ │ │ │ │ ├── Europe │ │ │ │ │ ├── Skopje.rb │ │ │ │ │ ├── Zagreb.rb │ │ │ │ │ ├── Ljubljana.rb │ │ │ │ │ ├── Sarajevo.rb │ │ │ │ │ └── Bratislava.rb │ │ │ │ │ ├── Etc │ │ │ │ │ └── UTC.rb │ │ │ │ │ ├── Africa │ │ │ │ │ └── Harare.rb │ │ │ │ │ ├── Asia │ │ │ │ │ ├── Kuwait.rb │ │ │ │ │ ├── Muscat.rb │ │ │ │ │ ├── Riyadh.rb │ │ │ │ │ ├── Kabul.rb │ │ │ │ │ └── Katmandu.rb │ │ │ │ │ ├── Atlantic │ │ │ │ │ └── South_Georgia.rb │ │ │ │ │ └── Pacific │ │ │ │ │ └── Majuro.rb │ │ │ └── builder-2.1.2 │ │ │ │ └── builder.rb │ │ │ ├── cache │ │ │ ├── drb_store.rb │ │ │ └── compressed_mem_cache_store.rb │ │ │ ├── test_case.rb │ │ │ ├── multibyte │ │ │ └── handlers │ │ │ │ └── passthru_handler.rb │ │ │ ├── ordered_options.rb │ │ │ └── base64.rb │ └── activeresource │ │ ├── lib │ │ ├── activeresource.rb │ │ └── active_resource │ │ │ ├── version.rb │ │ │ ├── formats │ │ │ └── json_format.rb │ │ │ └── formats.rb │ │ └── test │ │ └── fixtures │ │ ├── person.rb │ │ ├── customer.rb │ │ ├── street_address.rb │ │ └── beast.rb └── plugins │ ├── attachment_fu │ ├── test │ │ ├── fixtures │ │ │ └── files │ │ │ │ ├── foo.txt │ │ │ │ ├── rails.png │ │ │ │ └── fake │ │ │ │ └── rails.png │ │ ├── database.yml │ │ └── backends │ │ │ └── db_file_test.rb │ ├── install.rb │ └── amazon_s3.yml.tpl │ └── restful_authentication │ ├── install.rb │ └── generators │ └── authenticated │ ├── USAGE │ └── templates │ ├── helper.rb │ ├── model_helper.rb │ ├── activation.html.erb │ ├── signup_notification.html.erb │ ├── observer.rb │ ├── login.html.erb │ └── authenticated_test_helper.rb ├── index └── development │ └── photo │ ├── segments │ ├── _a.cfs │ ├── _b.cfs │ ├── _c.cfs │ └── segments_d ├── app ├── helpers │ ├── users_helper.rb │ ├── photos_helper.rb │ ├── sessions_helper.rb │ ├── comments_helper.rb │ └── application_helper.rb ├── views │ ├── photos │ │ ├── index.html.erb │ │ ├── new.html.erb │ │ ├── _photo.html.erb │ │ └── edit.html.erb │ ├── notifier │ │ ├── signup_alert.erb │ │ ├── comment_alert.erb │ │ └── welcome.erb │ ├── comments │ │ ├── _comment.html.erb │ │ ├── show.html.erb │ │ ├── _new.html.erb │ │ └── edit.html.erb │ ├── sessions │ │ └── new.html.erb │ └── users │ │ └── new.html.erb ├── models │ ├── comment.rb │ └── photo.rb └── controllers │ └── application.rb ├── db ├── test.sqlite3 ├── development.sqlite3 └── migrate │ ├── 20080805100212_create_comments.rb │ └── 002_create_photos.rb ├── test ├── fixtures │ ├── notifier │ │ ├── welcome │ │ ├── signup_alert │ │ └── comment_alert │ ├── comments.yml │ └── users.yml ├── unit │ ├── comment_test.rb │ └── photo_test.rb └── functional │ └── comments_controller_test.rb ├── script ├── about ├── plugin ├── runner ├── server ├── console ├── dbconsole ├── destroy ├── generate ├── process │ ├── reaper │ ├── spawner │ └── inspector └── performance │ ├── profiler │ ├── request │ └── benchmarker ├── doc └── README_FOR_APP ├── config ├── initializers │ ├── mime_types.rb │ └── inflections.rb ├── amazon_s3.yml └── database.yml ├── Rakefile ├── lib └── authenticated_test_helper.rb └── README /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/railties/configs/empty.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index/development/photo/segments: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/users_helper.rb: -------------------------------------------------------------------------------- 1 | module UsersHelper 2 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/tasks.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/developers.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/people.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/photos_helper.rb: -------------------------------------------------------------------------------- 1 | module PhotosHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/sessions_helper.rb: -------------------------------------------------------------------------------- 1 | module SessionsHelper 2 | end -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/test/fixtures/files/foo.txt: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /app/helpers/comments_helper.rb: -------------------------------------------------------------------------------- 1 | module CommentsHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/actionpack.rb: -------------------------------------------------------------------------------- 1 | require 'action_pack' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hello.builder: -------------------------------------------------------------------------------- 1 | xm.hello -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/actionmailer.rb: -------------------------------------------------------------------------------- 1 | require 'action_mailer' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/activerecord.rb: -------------------------------------------------------------------------------- 1 | require 'active_record' 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml: -------------------------------------------------------------------------------- 1 | qwerty 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb: -------------------------------------------------------------------------------- 1 | first mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/404.html: -------------------------------------------------------------------------------- 1 | 404 error fixture 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/500.html: -------------------------------------------------------------------------------- 1 | 500 error fixture 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js: -------------------------------------------------------------------------------- 1 | // bank js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js: -------------------------------------------------------------------------------- 1 | // robber js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_raise.html.erb: -------------------------------------------------------------------------------- 1 | <%= doesnt_exist %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb: -------------------------------------------------------------------------------- 1 | <%= topic.title %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/activesupport.rb: -------------------------------------------------------------------------------- 1 | require 'active_support' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb: -------------------------------------------------------------------------------- 1 | second mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml: -------------------------------------------------------------------------------- 1 | hello.rhtml -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb: -------------------------------------------------------------------------------- 1 | <%= mascot.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb: -------------------------------------------------------------------------------- 1 | Hello Firefox -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/controls.js: -------------------------------------------------------------------------------- 1 | // controls js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/dragdrop.js: -------------------------------------------------------------------------------- 1 | // dragdrop js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/effects.js: -------------------------------------------------------------------------------- 1 | // effects js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css: -------------------------------------------------------------------------------- 1 | /* bank.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css: -------------------------------------------------------------------------------- 1 | /* robber.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.erb: -------------------------------------------------------------------------------- 1 |

This is grand!

2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/minimalistics.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/activeresource.rb: -------------------------------------------------------------------------------- 1 | require 'active_resource' 2 | -------------------------------------------------------------------------------- /db/test.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/db/test.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb: -------------------------------------------------------------------------------- 1 | let's go! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml: -------------------------------------------------------------------------------- 1 | alt/hello.rhtml 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb: -------------------------------------------------------------------------------- 1 | layout: <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb: -------------------------------------------------------------------------------- 1 | Super Firefox -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Super iPhone -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // application js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js: -------------------------------------------------------------------------------- 1 | // prototype js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js: -------------------------------------------------------------------------------- 1 | // version.1.0 js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb: -------------------------------------------------------------------------------- 1 |

Beautiful modules!

-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb: -------------------------------------------------------------------------------- 1 | formatted html erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test 'failed' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/binary.rb: -------------------------------------------------------------------------------- 1 | class Binary < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/guid.rb: -------------------------------------------------------------------------------- 1 | class Guid < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/addresses/list.erb: -------------------------------------------------------------------------------- 1 | We only need to get this far! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml: -------------------------------------------------------------------------------- 1 | item.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello overridden world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css: -------------------------------------------------------------------------------- 1 | /* version.1.0.css */ -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab: -------------------------------------------------------------------------------- 1 | Mab -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | fk_id: 1 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/items.yml: -------------------------------------------------------------------------------- 1 | dvd: 2 | id: 1 3 | name: Godfather 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/warehouse-things.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | value: 1000 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/default.rb: -------------------------------------------------------------------------------- 1 | class Default < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/task.rb: -------------------------------------------------------------------------------- 1 | class Task < ActiveRecord::Base 2 | 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails/info_helper.rb: -------------------------------------------------------------------------------- 1 | module Rails::InfoHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /db/development.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/db/development.sqlite3 -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/images/rails.png -------------------------------------------------------------------------------- /test/fixtures/notifier/welcome: -------------------------------------------------------------------------------- 1 | Notifier#welcome 2 | 3 | Find me in app/views/notifier/welcome.erb 4 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml: -------------------------------------------------------------------------------- 1 | <%= 'hello world!' %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs: -------------------------------------------------------------------------------- 1 | page.alert 'hello world!' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb: -------------------------------------------------------------------------------- 1 | <%= labelling_form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_person.erb: -------------------------------------------------------------------------------- 1 | Second: <%= name %> 2 | Third: <%= @name %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml: -------------------------------------------------------------------------------- 1 | # i wonder what will happen here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/railties_path.rb: -------------------------------------------------------------------------------- 1 | RAILTIES_PATH = File.join(File.dirname(__FILE__), '..') 2 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/install.rb: -------------------------------------------------------------------------------- 1 | puts IO.read(File.join(File.dirname(__FILE__), 'README')) -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml: -------------------------------------------------------------------------------- 1 | layout_test.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb: -------------------------------------------------------------------------------- 1 | Mobile -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb: -------------------------------------------------------------------------------- 1 | passed formatted html erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb: -------------------------------------------------------------------------------- 1 | passed formatted xml erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_from_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :file => @path %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/minimalistic.rb: -------------------------------------------------------------------------------- 1 | class Minimalistic < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb: -------------------------------------------------------------------------------- 1 | So, <%= example_format(@text) %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/yield.erb: -------------------------------------------------------------------------------- 1 | <%= yield :title %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML for all_types_with_layout -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer_greeting.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hash_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= hash_greeting[:first_name] %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb: -------------------------------------------------------------------------------- 1 | Inside from partial (<%= name %>) -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb: -------------------------------------------------------------------------------- 1 | The value of foo is: ::<%= @foo %>:: 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/legacy_things.yml: -------------------------------------------------------------------------------- 1 | obtuse: 2 | id: 1 3 | tps_report_number: 500 4 | -------------------------------------------------------------------------------- /index/development/photo/_a.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/index/development/photo/_a.cfs -------------------------------------------------------------------------------- /index/development/photo/_b.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/index/development/photo/_b.cfs -------------------------------------------------------------------------------- /index/development/photo/_c.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/index/development/photo/_c.cfs -------------------------------------------------------------------------------- /test/fixtures/notifier/signup_alert: -------------------------------------------------------------------------------- 1 | Notifier#signup_alert 2 | 3 | Find me in app/views/notifier/signup_alert.erb 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/builder.builder: -------------------------------------------------------------------------------- 1 | xml.wrapper do 2 | xml << @content_for_layout 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascot.rb: -------------------------------------------------------------------------------- 1 | class Mascot < ActiveRecord::Base 2 | belongs_to :company 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs: -------------------------------------------------------------------------------- 1 | page << "RJS for all_types_with_layout" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | Before (<%= name %>) 2 | <%= yield %> 3 | After -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/course.rb: -------------------------------------------------------------------------------- 1 | class Course < ActiveRecord::Base 2 | has_many :entrants 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/process.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/process/daemon' 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/about.rb: -------------------------------------------------------------------------------- 1 | require 'environment' 2 | require 'rails/info' 3 | puts Rails::Info 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb: -------------------------------------------------------------------------------- 1 | # Include hook code here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb: -------------------------------------------------------------------------------- 1 | # <%= class_name %> 2 | -------------------------------------------------------------------------------- /index/development/photo/segments_d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/index/development/photo/segments_d -------------------------------------------------------------------------------- /script/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/about' 4 | -------------------------------------------------------------------------------- /script/plugin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/plugin' 4 | -------------------------------------------------------------------------------- /script/runner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/runner' 4 | -------------------------------------------------------------------------------- /script/server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/server' 4 | -------------------------------------------------------------------------------- /test/fixtures/notifier/comment_alert: -------------------------------------------------------------------------------- 1 | Notifier#comment_alert 2 | 3 | Find me in app/views/notifier/comment_alert.erb 4 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb: -------------------------------------------------------------------------------- 1 | Hello, <%= person_name %>. Thanks for registering! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb: -------------------------------------------------------------------------------- 1 | yaml to: <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascots.yml: -------------------------------------------------------------------------------- 1 | upload_bird: 2 | id: 1 3 | company_id: 1 4 | name: The Upload Bird -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb: -------------------------------------------------------------------------------- 1 | Hello future from <%= @type -%>! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer_counter.erb: -------------------------------------------------------------------------------- 1 | <%= customer_counter.name %><%= customer_counter_counter %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/entrant.rb: -------------------------------------------------------------------------------- 1 | class Entrant < ActiveRecord::Base 2 | belongs_to :course 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/ship.rb: -------------------------------------------------------------------------------- 1 | class Ship < ActiveRecord::Base 2 | self.record_timestamps = false 3 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/test.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/test/unit/assertions' 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb: -------------------------------------------------------------------------------- 1 | # Install hook code here 2 | -------------------------------------------------------------------------------- /public/photos/0000/0009/IMG_0017.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0009/IMG_0017.jpg -------------------------------------------------------------------------------- /script/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /script/dbconsole: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/dbconsole' 4 | -------------------------------------------------------------------------------- /script/destroy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/destroy' 4 | -------------------------------------------------------------------------------- /script/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/USAGE: -------------------------------------------------------------------------------- 1 | ./script/generate authenticated USERMODEL CONTROLLERNAME -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb: -------------------------------------------------------------------------------- 1 | module Fun::PdfHelper 2 | def foobar() 'baz' end 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/standard.erb: -------------------------------------------------------------------------------- 1 | <%= @content_for_layout %><%= @variable_for_layout %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Talking to the layout" -%> 2 | Action was here! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/capturing.erb: -------------------------------------------------------------------------------- 1 | <% days = capture do %> 2 | Dreamy days 3 | <% end %> 4 | <%= days %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/assets/example.log: -------------------------------------------------------------------------------- 1 | # Logfile created on Wed Oct 31 16:05:13 +0000 2007 by logger.rb/1.5.2.9 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/computers.yml: -------------------------------------------------------------------------------- 1 | workstation: 2 | id: 1 3 | developer: 1 4 | extendedWarranty: 1 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/distinct.yml: -------------------------------------------------------------------------------- 1 | distinct1: 2 | id: 1 3 | 4 | distinct2: 5 | id: 2 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/joke.rb: -------------------------------------------------------------------------------- 1 | class Joke < ActiveRecord::Base 2 | set_table_name 'funny_jokes' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb: -------------------------------------------------------------------------------- 1 | # Uninstall hook code here 2 | -------------------------------------------------------------------------------- /app/views/photos/index.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= render :partial => 'photo', :collection => @photos %> 3 | 4 | <%= will_paginate @photos %> -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/loader.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/mailbox' 3 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mbox.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/mailbox' 3 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb: -------------------------------------------------------------------------------- 1 | <% cache do %> 2 | Fragment caching in a partial 3 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb: -------------------------------------------------------------------------------- 1 | module Fun::GamesHelper 2 | def stratego() "Iz guuut!" end 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb: -------------------------------------------------------------------------------- 1 | multiple_extensions.html.erb <%= yield %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone future from <%= @type -%>! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb: -------------------------------------------------------------------------------- 1 | This is my layout 2 | 3 | <%= yield %> 4 | 5 | End. 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/author_addresses.yml: -------------------------------------------------------------------------------- 1 | david_address: 2 | id: 1 3 | 4 | david_address_extra: 5 | id: 2 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/author_favorites.yml: -------------------------------------------------------------------------------- 1 | david_mary: 2 | id: 1 3 | author_id: 1 4 | favorite_author_id: 2 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/vertices.yml: -------------------------------------------------------------------------------- 1 | <% (1..5).each do |id| %> 2 | vertex_<%= id %>: 3 | id: <%= id %> 4 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/keyboard.rb: -------------------------------------------------------------------------------- 1 | class Keyboard < ActiveRecord::Base 2 | set_primary_key 'key_number' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.plain.erb: -------------------------------------------------------------------------------- 1 | Hey Ho, <%= render :partial => "subtemplate" %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'partial' %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hash_object.erb: -------------------------------------------------------------------------------- 1 | <%= hash_object[:first_name] %> 2 | <%= object[:first_name].reverse %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title do %>Putting stuff in the title!<% end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/members.yml: -------------------------------------------------------------------------------- 1 | groucho: 2 | name: Groucho Marx 3 | some_other_guy: 4 | name: Englebert Humperdink -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/tags.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | 5 | misc: 6 | id: 2 7 | name: Misc -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/legacy_thing.rb: -------------------------------------------------------------------------------- 1 | class LegacyThing < ActiveRecord::Base 2 | set_locking_column :version 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/pet.rb: -------------------------------------------------------------------------------- 1 | class Pet < ActiveRecord::Base 2 | set_primary_key :pet_id 3 | belongs_to :owner 4 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /app/views/notifier/signup_alert.erb: -------------------------------------------------------------------------------- 1 | A new user has signed up to the LF Gallery! 2 | 3 | Email: <%= @user.email %> 4 | 5 | -- 6 | LF Gallery -------------------------------------------------------------------------------- /public/photos/0000/0009/IMG_0017_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0009/IMG_0017_thumb.jpg -------------------------------------------------------------------------------- /script/process/reaper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/reaper' 4 | -------------------------------------------------------------------------------- /script/process/spawner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/spawner' 4 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper.rb: -------------------------------------------------------------------------------- 1 | module <%= model_controller_class_name %>Helper 2 | end -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb: -------------------------------------------------------------------------------- 1 | This message brought to you by <%= name_of_the_mailer_class %>. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml: -------------------------------------------------------------------------------- 1 | controller_name_space/nested.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_from_rxml.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello" 3 | end 4 | "String return value" 5 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/topic.rb: -------------------------------------------------------------------------------- 1 | class Topic < ActiveRecord::Base 2 | has_many :replies, :dependent => :destroy 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/people.yml: -------------------------------------------------------------------------------- 1 | michael: 2 | id: 1 3 | first_name: Michael 4 | david: 5 | id: 2 6 | first_name: David -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/owner.rb: -------------------------------------------------------------------------------- 1 | class Owner < ActiveRecord::Base 2 | set_primary_key :owner_id 3 | has_many :pets 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/reader.rb: -------------------------------------------------------------------------------- 1 | class Reader < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :person 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/destroy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/destroy' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/plugin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/plugin' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/runner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/runner' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/server' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/railties/html/images/rails.png -------------------------------------------------------------------------------- /public/photos/0000/0005/Ferrofluid__Cream.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0005/Ferrofluid__Cream.jpg -------------------------------------------------------------------------------- /public/photos/0000/0007/Ferrofluid__Spike.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0007/Ferrofluid__Spike.jpg -------------------------------------------------------------------------------- /script/process/inspector: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/inspector' 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb: -------------------------------------------------------------------------------- 1 |

Unknown action

2 |

<%=h @exception.message %>

3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | Hello 2 | <% cache do %>This bit's fragment cached<% end %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs: -------------------------------------------------------------------------------- 1 | page.replace_html 'notices', :partial => 'partial' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb: -------------------------------------------------------------------------------- 1 | <%= @title || @content_for_title %> 2 | <%= @content_for_layout -%> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/block_content_for.erb: -------------------------------------------------------------------------------- 1 | <% block_content_for :title do 'Putting stuff in the title!' end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for_with_parameter.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff in the title!" %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs: -------------------------------------------------------------------------------- 1 | page.remove 'person' 2 | page.visual_effect :highlight, "project-#{@project_id}" 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/erb_content_for.erb: -------------------------------------------------------------------------------- 1 | <% erb_content_for :title do %>Putting stuff in the title!<% end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello #{@name}" 3 | xml << render_file("test/greeting") 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/ships.yml: -------------------------------------------------------------------------------- 1 | black_pearl: 2 | name: "Black Pearl" 3 | interceptor: 4 | id: 2 5 | name: "Interceptor" 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/column_name.rb: -------------------------------------------------------------------------------- 1 | class ColumnName < ActiveRecord::Base 2 | def self.table_name () "colnametests" end 3 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/mixed_case_monkey.rb: -------------------------------------------------------------------------------- 1 | class MixedCaseMonkey < ActiveRecord::Base 2 | set_primary_key 'monkeyID' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/movie.rb: -------------------------------------------------------------------------------- 1 | class Movie < ActiveRecord::Base 2 | def self.primary_key 3 | "movieid" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/reference.rb: -------------------------------------------------------------------------------- 1 | class Reference < ActiveRecord::Base 2 | belongs_to :person 3 | belongs_to :job 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/person.rb: -------------------------------------------------------------------------------- 1 | class Person < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000" 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/dbconsole: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/dbconsole' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /public/photos/0000/0011/Tokyo_trails_close-up.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0011/Tokyo_trails_close-up.jpg -------------------------------------------------------------------------------- /script/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /script/performance/request: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/request' 4 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb: -------------------------------------------------------------------------------- 1 | Have a lovely picture, from me. Enjoy! -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb: -------------------------------------------------------------------------------- 1 | Ignored when searching for implicitly multipart parts. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak: -------------------------------------------------------------------------------- 1 | Ignored when searching for implicitly multipart parts. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/project.rb: -------------------------------------------------------------------------------- 1 | class Project < ActiveRecord::Base 2 | has_and_belongs_to_many :developers, :uniq => true 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder: -------------------------------------------------------------------------------- 1 | xml.test do 2 | render :partial => 'hello', :locals => { :xm => xml } 3 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/assets/flowers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/activerecord/test/assets/flowers.jpg -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/jobs.yml: -------------------------------------------------------------------------------- 1 | unicyclist: 2 | id: 1 3 | ideal_reference_id: 2 4 | clown: 5 | id: 2 6 | magician: 7 | id: 3 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/select.yml: -------------------------------------------------------------------------------- 1 | select1: 2 | id: 1 3 | 4 | select2: 5 | id: 2 6 | 7 | select3: 8 | id: 3 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/computer.rb: -------------------------------------------------------------------------------- 1 | class Computer < ActiveRecord::Base 2 | belongs_to :developer, :foreign_key=>'developer' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/customer.rb: -------------------------------------------------------------------------------- 1 | class Customer < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000" 3 | end 4 | -------------------------------------------------------------------------------- /app/models/comment.rb: -------------------------------------------------------------------------------- 1 | class Comment < ActiveRecord::Base 2 | belongs_to :user 3 | belongs_to :photo 4 | validates_presence_of :title, :body 5 | end 6 | -------------------------------------------------------------------------------- /public/photos/0000/0005/Ferrofluid__Cream_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0005/Ferrofluid__Cream_thumb.jpg -------------------------------------------------------------------------------- /public/photos/0000/0007/Ferrofluid__Spike_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0007/Ferrofluid__Spike_thumb.jpg -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb: -------------------------------------------------------------------------------- 1 |

Template is missing

2 |

<%=h @exception.message %>

3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb: -------------------------------------------------------------------------------- 1 | module AbcHelper 2 | def bare_a() end 3 | def bare_b() end 4 | def bare_c() end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/single_parameter: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/examples/associations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/activerecord/examples/associations.png -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/courses.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | id: 1 3 | name: Ruby Development 4 | 5 | java: 6 | id: 2 7 | name: Java Development 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/movies.yml: -------------------------------------------------------------------------------- 1 | first: 2 | movieid: 1 3 | name: Terminator 4 | 5 | second: 6 | movieid: 2 7 | name: Gladiator 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/values.yml: -------------------------------------------------------------------------------- 1 | values1: 2 | id: 1 3 | group_id: 2 4 | 5 | values2: 6 | id: 2 7 | group_id: 1 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subscription.rb: -------------------------------------------------------------------------------- 1 | class Subscription < ActiveRecord::Base 2 | belongs_to :subscriber 3 | belongs_to :book 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= action %> 2 | 3 | Find me in <%= path %> 4 | -------------------------------------------------------------------------------- /script/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/good_customers/_good_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/bracketed_param: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo[baz]" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml: -------------------------------------------------------------------------------- 1 | first: 2 | monkeyID: 1 3 | fleaCount: 42 4 | second: 5 | monkeyID: 2 6 | fleaCount: 43 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/owners.yml: -------------------------------------------------------------------------------- 1 | blackbeard: 2 | owner_id: 1 3 | name: blackbeard 4 | 5 | ashley: 6 | owner_id: 2 7 | name: ashley 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/price_estimate.rb: -------------------------------------------------------------------------------- 1 | class PriceEstimate < ActiveRecord::Base 2 | belongs_to :estimate_of, :polymorphic => true 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb: -------------------------------------------------------------------------------- 1 | class Numeric 2 | def to_json(options = nil) #:nodoc: 3 | to_s 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb: -------------------------------------------------------------------------------- 1 | class Regexp 2 | def to_json(options = nil) #:nodoc: 3 | inspect 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/reaper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/reaper' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/spawner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/spawner' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= action %> 2 | 3 | Find me in <%= path %> 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Observer < ActiveRecord::Observer 2 | end 3 | -------------------------------------------------------------------------------- /public/photos/0000/0011/Tokyo_trails_close-up_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/public/photos/0000/0011/Tokyo_trails_close-up_thumb.jpg -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb: -------------------------------------------------------------------------------- 1 | From "Romeo and Juliet": 2 | 3 | <%= block_format @text %> 4 | 5 | Good ol' Shakespeare. 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.html.haml: -------------------------------------------------------------------------------- 1 | %p Hello there, 2 | 3 | %p 4 | Mr. 5 | = @recipient 6 | from haml -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb: -------------------------------------------------------------------------------- 1 | class Foo < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/matey.rb: -------------------------------------------------------------------------------- 1 | class Matey < ActiveRecord::Base 2 | belongs_to :pirate 3 | belongs_to :target, :class_name => 'Pirate' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subject.rb: -------------------------------------------------------------------------------- 1 | # used for OracleSynonymTest, see test/synonym_test_oci.rb 2 | # 3 | class Subject < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb: -------------------------------------------------------------------------------- 1 | class NilClass 2 | def to_json(options = nil) #:nodoc: 3 | 'null' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb: -------------------------------------------------------------------------------- 1 | class TrueClass 2 | def to_json(options = nil) #:nodoc: 3 | 'true' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/inspector: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/inspector' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails_info_controller.rb: -------------------------------------------------------------------------------- 1 | # Alias to ensure old public.html still works. 2 | RailsInfoController = Rails::InfoController 3 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/test/fixtures/files/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/plugins/attachment_fu/test/fixtures/files/rails.png -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml: -------------------------------------------------------------------------------- 1 | %p Hello there, 2 | 3 | %p 4 | Mr. 5 | = @recipient 6 | from haml -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb: -------------------------------------------------------------------------------- 1 | Plain text to <%= @recipient %>. 2 | Plain text to <%= @recipient %>. 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/binary_file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/actionpack/test/fixtures/multipart/binary_file -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mixed_files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/actionpack/test/fixtures/multipart/mixed_files -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for_concatenated.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff " 2 | content_for :title, "in the title!" %> 3 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder: -------------------------------------------------------------------------------- 1 | content_for :title do 2 | 'Putting stuff in the title!' 3 | end 4 | xml << "\nGreat stuff!" -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/books.yml: -------------------------------------------------------------------------------- 1 | awdr: 2 | id: 1 3 | name: "Agile Web Development with Rails" 4 | 5 | rfr: 6 | id: 2 7 | name: "Ruby for Rails" 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb: -------------------------------------------------------------------------------- 1 | class FalseClass 2 | def to_json(options = nil) #:nodoc: 3 | 'false' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/request: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/request' 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/actionpack/test/fixtures/public/images/rails.png -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/list.erb: -------------------------------------------------------------------------------- 1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %> 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # Methods added to this helper will be available to all templates in the application. 2 | module ApplicationHelper 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb: -------------------------------------------------------------------------------- 1 |

<%= class_name %>#<%= action %>

2 |

Find me in <%= path %>

3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb: -------------------------------------------------------------------------------- 1 | class <%= controller_class_name %>Controller < ApplicationController 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/categorization.rb: -------------------------------------------------------------------------------- 1 | class Categorization < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :category 4 | belongs_to :author 5 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/using_layout_around_block.html.erb: -------------------------------------------------------------------------------- 1 | <% render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/edges.yml: -------------------------------------------------------------------------------- 1 | <% (1..4).each do |id| %> 2 | edge_<%= id %>: 3 | id: <%= id %> 4 | source_id: <%= id %> 5 | sink_id: <%= id + 1 %> 6 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/auto_id.rb: -------------------------------------------------------------------------------- 1 | class AutoId < ActiveRecord::Base 2 | def self.table_name () "auto_id_tests" end 3 | def self.primary_key () "auto_id" end 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/warehouse_thing.rb: -------------------------------------------------------------------------------- 1 | class WarehouseThing < ActiveRecord::Base 2 | set_table_name "warehouse-things" 3 | 4 | validates_uniqueness_of :value 5 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/readers.yml: -------------------------------------------------------------------------------- 1 | michael_welcome: 2 | id: 1 3 | post_id: 1 4 | person_id: 1 5 | 6 | michael_authorless: 7 | id: 2 8 | post_id: 3 9 | person_id: 1 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/subscribers.yml: -------------------------------------------------------------------------------- 1 | first: 2 | nick: alterself 3 | name: Luke Holden 4 | 5 | second: 6 | nick: webster132 7 | name: David Heinemeier Hansson 8 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb: -------------------------------------------------------------------------------- 1 | module ExampleHelper 2 | def example_format(text) 3 | "#{text}" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb: -------------------------------------------------------------------------------- 1 | class Chunky < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb: -------------------------------------------------------------------------------- 1 | class Chunky < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb: -------------------------------------------------------------------------------- 1 | class Symbol 2 | def to_json(options = {}) #:nodoc: 3 | ActiveSupport::JSON.encode(to_s, options) 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat -------------------------------------------------------------------------------- /vendor/rails/railties/bin/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexyoung/gallery/master/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb: -------------------------------------------------------------------------------- 1 | <%= render(:layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => { :name => "David" }) %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/mateys.yml: -------------------------------------------------------------------------------- 1 | blackbeard_to_redbeard: 2 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 3 | target_id: <%= Fixtures.identify(:redbeard) %> 4 | weight: 10 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake: -------------------------------------------------------------------------------- 1 | # desc "Explaining what the task does" 2 | # task :<%= file_name %> do 3 | # # Task goes here 4 | # end 5 | -------------------------------------------------------------------------------- /test/unit/comment_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class CommentTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb: -------------------------------------------------------------------------------- 1 | First: <%= @name %> 2 | <%= render :partial => "person", :locals => { :name => "Stephan" } -%> 3 | Fourth: <%= @name %> 4 | Fifth: <%= name %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/authors.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | author_address_id: 1 5 | author_address_extra_id: 2 6 | 7 | mary: 8 | id: 2 9 | name: Mary 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/price_estimates.yml: -------------------------------------------------------------------------------- 1 | saphire_1: 2 | price: 10 3 | estimate_of: sapphire (Treasure) 4 | 5 | sapphire_2: 6 | price: 20 7 | estimate_of: sapphire (Treasure) 8 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail.rb: -------------------------------------------------------------------------------- 1 | require 'tmail/version' 2 | require 'tmail/mail' 3 | require 'tmail/mailbox' 4 | require 'tmail/core_extensions' 5 | require 'tmail/net' 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/clubs.yml: -------------------------------------------------------------------------------- 1 | boring_club: 2 | name: Banana appreciation society 3 | moustache_club: 4 | name: Moustache and Eyebrow Fancier Club 5 | crazy_club: 6 | name: Skull and bones -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb: -------------------------------------------------------------------------------- 1 | class IRaiseOnDown < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | raise 7 | end 8 | end -------------------------------------------------------------------------------- /vendor/rails/railties/html/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes here 2 | // This file is automatically included by javascript_include_tag :defaults 3 | -------------------------------------------------------------------------------- /app/views/notifier/comment_alert.erb: -------------------------------------------------------------------------------- 1 | A comment has been posted to the LF Gallery: 2 | 3 | Email: <%= @comment.user.email %> 4 | Title: <%= @comment.title %> 5 | Message: <%= @comment.body %> 6 | 7 | -- 8 | LF Gallery -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml: -------------------------------------------------------------------------------- 1 | sub_special_3: 2 | id: 102 3 | name: A special category in an arbitrarily named subsubdir file 4 | type: SpecialCategory 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/item.rb: -------------------------------------------------------------------------------- 1 | class AbstractItem < ActiveRecord::Base 2 | self.abstract_class = true 3 | has_one :tagging, :as => :taggable 4 | end 5 | 6 | class Item < AbstractItem 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/schema/sqlserver_specific_schema.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define do 2 | create_table :table_with_real_columns, :force => true do |t| 3 | t.column :real_number, :real 4 | end 5 | end -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/street_address.rb: -------------------------------------------------------------------------------- 1 | class StreetAddress < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000/people/:person_id/" 3 | self.element_name = 'address' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/float.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/float/rounding' 2 | 3 | class Float #:nodoc: 4 | include ActiveSupport::CoreExtensions::Float::Rounding 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/update.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/update' 4 | Rails::Generator::Scripts::Update.new.run(ARGV) 5 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/activation.html.erb: -------------------------------------------------------------------------------- 1 | <%%= @<%= file_name %>.login %>, your account has been activated. You may now start adding your plugins: 2 | 3 | <%%= @url %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/main.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/version' 3 | require 'tmail/mail' 4 | require 'tmail/mailbox' 5 | require 'tmail/core_extensions' 6 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/funny_jokes.yml: -------------------------------------------------------------------------------- 1 | a_joke: 2 | id: 1 3 | name: Knock knock 4 | 5 | another_joke: 6 | id: 2 7 | name: | 8 | The \n Aristocrats 9 | Ate the candy 10 | 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/sponsor.rb: -------------------------------------------------------------------------------- 1 | class Sponsor < ActiveRecord::Base 2 | belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id" 3 | belongs_to :sponsorable, :polymorphic => true 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/schema/schema2.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define do 2 | 3 | Course.connection.create_table :courses, :force => true do |t| 4 | t.column :name, :string, :null => false 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %>. Please see our greeting at <%= @welcome_url %> <%= welcome_url %> 4 | 5 | <%= image_tag "somelogo.png" %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories_ordered.yml: -------------------------------------------------------------------------------- 1 | --- !!omap 2 | <% 100.times do |i| %> 3 | - fixture_no_<%= i %>: 4 | id: <%= i %> 5 | name: <%= "Category #{i}" %> 6 | type: Category 7 | <% end %> 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/job.rb: -------------------------------------------------------------------------------- 1 | class Job < ActiveRecord::Base 2 | has_many :references 3 | has_many :people, :through => :references 4 | belongs_to :ideal_reference, :class_name => 'Reference' 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext.rb: -------------------------------------------------------------------------------- 1 | Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| 2 | filename = File.basename(path) 3 | require "active_support/core_ext/#{filename}" 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails/version.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/reply.rb: -------------------------------------------------------------------------------- 1 | class Reply < ActiveRecord::Base 2 | named_scope :base 3 | belongs_to :topic, :include => [:replies] 4 | belongs_to :developer 5 | 6 | validates_presence_of :content 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/treasures.yml: -------------------------------------------------------------------------------- 1 | diamond: 2 | name: $LABEL 3 | 4 | sapphire: 5 | name: $LABEL 6 | looter: redbeard (Pirate) 7 | 8 | ruby: 9 | name: $LABEL 10 | looter: louis (Parrot) 11 | -------------------------------------------------------------------------------- /app/views/comments/_comment.html.erb: -------------------------------------------------------------------------------- 1 |
2 |

Posted by <%= h comment.user.login %> on <%= comment.created_at.to_s(:short) %>

3 |

<%=h comment.title %>

4 |

<%=h comment.body %>

5 |
-------------------------------------------------------------------------------- /doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/book.rb: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | has_many :citations, :foreign_key => 'book1_id' 3 | has_many :references, :through => :citations, :source => :reference_of, :uniq => true 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/cgi/escape_skipping_slashes' 2 | 3 | class CGI #:nodoc: 4 | extend ActiveSupport::CoreExtensions::CGI::EscapeSkippingSlashes 5 | end 6 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/version.rb: -------------------------------------------------------------------------------- 1 | module ActionMailer 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/active_record/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveRecord 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/treasure.rb: -------------------------------------------------------------------------------- 1 | class Treasure < ActiveRecord::Base 2 | has_and_belongs_to_many :parrots 3 | belongs_to :looter, :polymorphic => true 4 | 5 | has_many :price_estimates, :as => :estimate_of 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/base64.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/base64' 2 | require 'active_support/core_ext/base64/encoding' 3 | 4 | ActiveSupport::Base64.extend ActiveSupport::CoreExtensions::Base64::Encoding 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/performance/request.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require 'config/environment' 3 | require 'application' 4 | require 'action_controller/request_profiler' 5 | 6 | ActionController::RequestProfiler.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_pack/version.rb: -------------------------------------------------------------------------------- 1 | module ActionPack #:nodoc: 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/scripts/generate.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../scripts' 2 | 3 | module Rails::Generator::Scripts 4 | class Generate < Base 5 | mandatory_options :command => :create 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/active_resource/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveResource 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/utils.rb: -------------------------------------------------------------------------------- 1 | module ActionMailer 2 | module Utils #:nodoc: 3 | def normalize_new_lines(text) 4 | text.to_s.gsub(/\r\n?/, "\n") 5 | end 6 | module_function :normalize_new_lines 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/fake_models.rb: -------------------------------------------------------------------------------- 1 | class Customer < Struct.new(:name, :id) 2 | def to_param 3 | id.to_s 4 | end 5 | end 6 | 7 | class BadCustomer < Customer 8 | end 9 | 10 | class GoodCustomer < Customer 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Controller < ApplicationController 2 | <% for action in actions -%> 3 | def <%= action %> 4 | end 5 | 6 | <% end -%> 7 | end 8 | -------------------------------------------------------------------------------- /test/fixtures/comments.yml: -------------------------------------------------------------------------------- 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html 2 | 3 | one: 4 | title: MyString 5 | body: MyText 6 | user_id: 1 7 | 8 | two: 9 | title: MyString 10 | body: MyText 11 | user_id: 1 12 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.head do 3 | xml.title "Hello World" 4 | end 5 | 6 | xml.body do 7 | xml.p "abes" 8 | xml.p "monks" 9 | xml.p "wiseguys" 10 | end 11 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/pets.yml: -------------------------------------------------------------------------------- 1 | parrot: 2 | pet_id: 1 3 | name: parrot 4 | owner_id: 1 5 | 6 | chew: 7 | pet_id: 2 8 | name: chew 9 | owner_id: 2 10 | 11 | mochi: 12 | pet_id: 3 13 | name: mochi 14 | owner_id: 2 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/group.yml: -------------------------------------------------------------------------------- 1 | group1: 2 | id: 1 3 | select_id: 1 4 | order: x 5 | 6 | group2: 7 | id: 2 8 | select_id: 2 9 | order: y 10 | 11 | group3: 12 | id: 3 13 | select_id: 2 14 | order: z 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/membership.rb: -------------------------------------------------------------------------------- 1 | class Membership < ActiveRecord::Base 2 | belongs_to :member 3 | belongs_to :club 4 | end 5 | 6 | class CurrentMembership < Membership 7 | belongs_to :member 8 | belongs_to :club 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb: -------------------------------------------------------------------------------- 1 | require 'pathname' 2 | require 'active_support/core_ext/pathname/clean_within' 3 | 4 | class Pathname#:nodoc: 5 | extend ActiveSupport::CoreExtensions::Pathname::CleanWithin 6 | end 7 | 8 | -------------------------------------------------------------------------------- /vendor/rails/railties/doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Explain the generator 3 | 4 | Example: 5 | ./script/generate <%= file_name %> Thing 6 | 7 | This will create: 8 | what/will/it/create 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subscriber.rb: -------------------------------------------------------------------------------- 1 | class Subscriber < ActiveRecord::Base 2 | set_primary_key 'nick' 3 | has_many :subscriptions 4 | has_many :books, :through => :subscriptions 5 | end 6 | 7 | class SpecialSubscriber < Subscriber 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb: -------------------------------------------------------------------------------- 1 | require 'bigdecimal' 2 | require 'active_support/core_ext/bigdecimal/conversions' 3 | 4 | class BigDecimal#:nodoc: 5 | include ActiveSupport::CoreExtensions::BigDecimal::Conversions 6 | end 7 | -------------------------------------------------------------------------------- /app/views/notifier/welcome.erb: -------------------------------------------------------------------------------- 1 | Dear <%= @user.login %>, 2 | 3 | Thanks for signing up to the LF Gallery! 4 | 5 | You have signed up with the following details: 6 | 7 | Email: <%= @user.email %> 8 | Login: <%= @user.login %> 9 | 10 | -- 11 | LF Gallery -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs: -------------------------------------------------------------------------------- 1 | page.select('.product').each do |value| 2 | page.visual_effect :highlight 3 | page.visual_effect :highlight, value 4 | page.sortable(value, :url => { :action => "order" }) 5 | page.draggable(value) 6 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/tasks.yml: -------------------------------------------------------------------------------- 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html 2 | first_task: 3 | id: 1 4 | starting: 2005-03-30t06:30:00.00+01:00 5 | ending: 2005-03-30t08:30:00.00+01:00 6 | another_task: 7 | id: 2 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/entrants.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | course_id: 1 4 | name: Ruby Developer 5 | 6 | second: 7 | id: 2 8 | course_id: 1 9 | name: Ruby Guru 10 | 11 | third: 12 | id: 3 13 | course_id: 2 14 | name: Java Lover 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/order.rb: -------------------------------------------------------------------------------- 1 | class Order < ActiveRecord::Base 2 | belongs_to :billing, :class_name => 'Customer', :foreign_key => 'billing_customer_id' 3 | belongs_to :shipping, :class_name => 'Customer', :foreign_key => 'shipping_customer_id' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/tag.rb: -------------------------------------------------------------------------------- 1 | class Tag < ActiveRecord::Base 2 | has_many :taggings 3 | has_many :taggables, :through => :taggings 4 | has_one :tagging 5 | 6 | has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post' 7 | end -------------------------------------------------------------------------------- /vendor/rails/railties/configs/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/destroy.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/destroy' 4 | 5 | ARGV.shift if ['--help', '-h'].include?(ARGV[0]) 6 | Rails::Generator::Scripts::Destroy.new.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/generate.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/generate' 4 | 5 | ARGV.shift if ['--help', '-h'].include?(ARGV[0]) 6 | Rails::Generator::Scripts::Generate.new.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>Test < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit' 2 | 3 | class <%= class_name %>Test < Test::Unit::TestCase 4 | # Replace this with your real tests. 5 | def test_this_plugin 6 | flunk 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb: -------------------------------------------------------------------------------- 1 | module HTML #:nodoc: 2 | module Version #:nodoc: 3 | 4 | MAJOR = 0 5 | MINOR = 5 6 | TINY = 3 7 | 8 | STRING = [ MAJOR, MINOR, TINY ].join(".") 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/config.rb: -------------------------------------------------------------------------------- 1 | TEST_ROOT = File.expand_path(File.dirname(__FILE__)) 2 | ASSETS_ROOT = TEST_ROOT + "/assets" 3 | FIXTURES_ROOT = TEST_ROOT + "/fixtures" 4 | MIGRATIONS_ROOT = TEST_ROOT + "/migrations" 5 | SCHEMA_ROOT = TEST_ROOT + "/schema" 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/pirates.yml: -------------------------------------------------------------------------------- 1 | blackbeard: 2 | catchphrase: "Yar." 3 | parrot: george 4 | 5 | redbeard: 6 | catchphrase: "Avast!" 7 | parrot: louis 8 | created_on: <%= 2.weeks.ago.to_s(:db) %> 9 | updated_on: <%= 2.weeks.ago.to_s(:db) %> 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb: -------------------------------------------------------------------------------- 1 | require 'benchmark' 2 | 3 | class << Benchmark 4 | remove_method :realtime 5 | 6 | def realtime 7 | r0 = Time.now 8 | yield 9 | r1 = Time.now 10 | r1.to_f - r0.to_f 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/object.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info. 3 | def to_json(options = {}) 4 | ActiveSupport::JSON.encode(instance_values, options) 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/distincts_selects.yml: -------------------------------------------------------------------------------- 1 | distincts_selects1: 2 | distinct_id: 1 3 | select_id: 1 4 | 5 | distincts_selects2: 6 | distinct_id: 1 7 | select_id: 2 8 | 9 | distincts_selects3: 10 | distinct_id: 2 11 | select_id: 3 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb: -------------------------------------------------------------------------------- 1 | module Kernel 2 | # Turns the current script into a daemon process that detaches from the console. 3 | # It can be shut down with a TERM signal. 4 | def daemonize 5 | Process.daemon 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/object.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/object/conversions' 2 | require 'active_support/core_ext/object/extending' 3 | require 'active_support/core_ext/object/instance_variables' 4 | require 'active_support/core_ext/object/misc' 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/tasks/log.rake: -------------------------------------------------------------------------------- 1 | namespace :log do 2 | desc "Truncates all *.log files in log/ to zero bytes" 3 | task :clear do 4 | FileList["log/*.log"].each do |log_file| 5 | f = File.open(log_file, "w") 6 | f.close 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/text_file: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x 6 | Content-Disposition: form-data; name="file"; filename="file.txt" 7 | Content-Type: text/plain 8 | 9 | contents 10 | --AaB03x-- 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories/special_categories.yml: -------------------------------------------------------------------------------- 1 | sub_special_1: 2 | id: 100 3 | name: A special category in a subdir file 4 | type: SpecialCategory 5 | 6 | sub_special_2: 7 | id: 101 8 | name: Another special category 9 | type: SpecialCategory 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/edge.rb: -------------------------------------------------------------------------------- 1 | # This class models an edge in a directed graph. 2 | class Edge < ActiveRecord::Base 3 | belongs_to :source, :class_name => 'Vertex', :foreign_key => 'source_id' 4 | belongs_to :sink, :class_name => 'Vertex', :foreign_key => 'sink_id' 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/testing/default.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module Testing 3 | module Default #:nodoc: 4 | # Placeholder so test/unit ignores test cases without any tests. 5 | def default_test 6 | end 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/console_sandbox.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Base.send :increment_open_transactions 2 | ActiveRecord::Base.connection.begin_db_transaction 3 | at_exit do 4 | ActiveRecord::Base.connection.rollback_db_transaction 5 | ActiveRecord::Base.send :decrement_open_transactions 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>ObserverTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/install.rb: -------------------------------------------------------------------------------- 1 | require 'fileutils' 2 | 3 | s3_config = File.dirname(__FILE__) + '/../../../config/amazon_s3.yml' 4 | FileUtils.cp File.dirname(__FILE__) + '/amazon_s3.yml.tpl', s3_config unless File.exist?(s3_config) 5 | puts IO.read(File.join(File.dirname(__FILE__), 'README')) -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/index.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | # This is here for Rolls. 3 | # Rolls uses this instead of lib/tmail.rb. 4 | 5 | require 'tmail/version' 6 | require 'tmail/mail' 7 | require 'tmail/mailbox' 8 | require 'tmail/core_extensions' 9 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | type: Category 5 | 6 | technology: 7 | id: 2 8 | name: Technology 9 | type: Category 10 | 11 | sti_test: 12 | id: 3 13 | name: Special category 14 | type: SpecialCategory 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/subscriptions.yml: -------------------------------------------------------------------------------- 1 | webster_awdr: 2 | id: 1 3 | subscriber_id: webster132 4 | book_id: 1 5 | webster_rfr: 6 | id: 2 7 | subscriber_id: webster132 8 | book_id: 2 9 | alterself_awdr: 10 | id: 3 11 | subscriber_id: alterself 12 | book_id: 3 -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Generator < Rails::Generator::NamedBase 2 | def manifest 3 | record do |m| 4 | # m.directory "lib" 5 | # m.template 'README', "README" 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developer.rb: -------------------------------------------------------------------------------- 1 | class Developer < ActiveRecord::Base 2 | has_and_belongs_to_many :projects 3 | has_many :replies 4 | has_many :topics, :through => :replies 5 | end 6 | 7 | class DeVeLoPeR < ActiveRecord::Base 8 | set_table_name "developers" 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveMiddleNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "middle_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "middle_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>ControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/signup_notification.html.erb: -------------------------------------------------------------------------------- 1 | Your account has been created. 2 | 3 | Username: <%%= @<%= file_name %>.login %> 4 | Password: <%%= @<%= file_name %>.password %> 5 | 6 | Visit this url to activate your account: 7 | 8 | <%%= @url %> -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/class.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/class/attribute_accessors' 2 | require 'active_support/core_ext/class/inheritable_attributes' 3 | require 'active_support/core_ext/class/removal' 4 | require 'active_support/core_ext/class/delegating_attributes' 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/variable.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module JSON 3 | # A string that returns itself as its JSON-encoded form. 4 | class Variable < String 5 | def to_json(options=nil) 6 | self 7 | end 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/multibyte.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module Multibyte #:nodoc: 3 | DEFAULT_NORMALIZATION_FORM = :kc 4 | NORMALIZATIONS_FORMS = [:c, :kc, :d, :kd] 5 | UNICODE_VERSION = '5.0.0' 6 | end 7 | end 8 | 9 | require 'active_support/multibyte/chars' 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= controller_class_name %>ControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/parrots_pirates.yml: -------------------------------------------------------------------------------- 1 | george_blackbeard: 2 | parrot_id: <%= Fixtures.identify(:george) %> 3 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 4 | 5 | louis_blackbeard: 6 | parrot_id: <%= Fixtures.identify(:louis) %> 7 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/club.rb: -------------------------------------------------------------------------------- 1 | class Club < ActiveRecord::Base 2 | has_many :memberships 3 | has_many :members, :through => :memberships 4 | has_many :current_memberships 5 | has_one :sponsor 6 | has_one :sponsored_member, :through => :sponsor, :source => :sponsorable, :source_type => "Member" 7 | end -------------------------------------------------------------------------------- /config/amazon_s3.yml: -------------------------------------------------------------------------------- 1 | development: 2 | bucket_name: appname_development 3 | access_key_id: 4 | secret_access_key: 5 | 6 | test: 7 | bucket_name: appname_test 8 | access_key_id: 9 | secret_access_key: 10 | 11 | production: 12 | bucket_name: appname 13 | access_key_id: 14 | secret_access_key: 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/citation.rb: -------------------------------------------------------------------------------- 1 | class Citation < ActiveRecord::Base 2 | belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id 3 | 4 | belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id 5 | belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/company.rb: -------------------------------------------------------------------------------- 1 | class Company < ActiveRecord::Base 2 | has_one :mascot 3 | attr_protected :rating 4 | set_sequence_name :companies_nonstd_seq 5 | 6 | validates_presence_of :name 7 | def validate 8 | errors.add('rating', 'rating should not be 2') if rating == 2 9 | end 10 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb: -------------------------------------------------------------------------------- 1 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Anthony' } ) %> 2 | <%= yield %> 3 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Ramm' } ) %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developers_projects.yml: -------------------------------------------------------------------------------- 1 | david_action_controller: 2 | developer_id: 1 3 | project_id: 2 4 | joined_on: 2004-10-10 5 | 6 | david_active_record: 7 | developer_id: 1 8 | project_id: 1 9 | joined_on: 2004-10-10 10 | 11 | jamis_active_record: 12 | developer_id: 2 13 | project_id: 1 -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb: -------------------------------------------------------------------------------- 1 | <% render(:layout => "layout_for_partial", :locals => { :name => "Anthony" }) do %>Inside from first block in layout<% end %> 2 | <%= yield %> 3 | <% render(:layout => "layout_for_partial", :locals => { :name => "Ramm" }) do %>Inside from second block in layout<% end %> 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/template/deprecated_erb_variable_test.rb: -------------------------------------------------------------------------------- 1 | require 'abstract_unit' 2 | 3 | class DeprecatedErbVariableTest < ActionView::TestCase 4 | def test_setting_erb_variable_warns 5 | assert_deprecated 'erb_variable' do 6 | ActionView::Base.erb_variable = '_erbout' 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/kernel/daemonizing' 2 | require 'active_support/core_ext/kernel/reporting' 3 | require 'active_support/core_ext/kernel/agnostics' 4 | require 'active_support/core_ext/kernel/requires' 5 | require 'active_support/core_ext/kernel/debugger' 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | HTML formatted message to <%= @recipient %>. 4 | 5 | 6 | 7 | 8 | HTML formatted message to <%= @recipient %>. 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/pirate.rb: -------------------------------------------------------------------------------- 1 | class Pirate < ActiveRecord::Base 2 | belongs_to :parrot 3 | has_and_belongs_to_many :parrots 4 | has_many :treasures, :as => :looter 5 | 6 | has_many :treasure_estimates, :through => :treasures, :source => :price_estimates 7 | 8 | validates_presence_of :catchphrase 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/integer.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/integer/even_odd' 2 | require 'active_support/core_ext/integer/inflections' 3 | 4 | class Integer #:nodoc: 5 | include ActiveSupport::CoreExtensions::Integer::EvenOdd 6 | include ActiveSupport::CoreExtensions::Integer::Inflections 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/connection_test_firebird.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | 3 | class FirebirdConnectionTest < ActiveRecord::TestCase 4 | def test_charset_properly_set 5 | fb_conn = ActiveRecord::Base.connection.instance_variable_get(:@connection) 6 | assert_equal 'UTF8', fb_conn.database.character_set 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/amazon_s3.yml.tpl: -------------------------------------------------------------------------------- 1 | development: 2 | bucket_name: appname_development 3 | access_key_id: 4 | secret_access_key: 5 | 6 | test: 7 | bucket_name: appname_test 8 | access_key_id: 9 | secret_access_key: 10 | 11 | production: 12 | bucket_name: appname 13 | access_key_id: 14 | secret_access_key: 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/string_inquirer.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | class StringInquirer < String 3 | def method_missing(method_name, *arguments) 4 | if method_name.to_s.ends_with?("?") 5 | self == method_name.to_s[0..-2] 6 | else 7 | super 8 | end 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/references.yml: -------------------------------------------------------------------------------- 1 | michael_magician: 2 | id: 1 3 | person_id: 1 4 | job_id: 3 5 | favourite: false 6 | 7 | michael_unicyclist: 8 | id: 2 9 | person_id: 1 10 | job_id: 1 11 | favourite: true 12 | 13 | david_unicyclist: 14 | id: 3 15 | person_id: 2 16 | job_id: 1 17 | favourite: false 18 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>Test < ActionController::IntegrationTest 4 | # fixtures :your, :models 5 | 6 | # Replace this with your real tests. 7 | def test_truth 8 | assert true 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README: -------------------------------------------------------------------------------- 1 | <%= class_name %> 2 | <%= "=" * class_name.size %> 3 | 4 | Introduction goes here. 5 | 6 | 7 | Example 8 | ======= 9 | 10 | Example goes here. 11 | 12 | 13 | Copyright (c) <%= Date.today.year %> [name of plugin creator], released under the MIT license 14 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/scripts/update.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../scripts' 2 | 3 | module Rails::Generator::Scripts 4 | class Update < Base 5 | mandatory_options :command => :update 6 | 7 | protected 8 | def banner 9 | "Usage: #{$0} [options] scaffold" 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require(File.join(File.dirname(__FILE__), 'config', 'boot')) 5 | 6 | require 'rake' 7 | require 'rake/testtask' 8 | require 'rake/rdoctask' 9 | 10 | require 'tasks/rails' 11 | -------------------------------------------------------------------------------- /app/views/comments/show.html.erb: -------------------------------------------------------------------------------- 1 |

2 | Title: 3 | <%=h @comment.title %> 4 |

5 | 6 |

7 | Body: 8 | <%=h @comment.body %> 9 |

10 | 11 |

12 | User: 13 | <%=h @comment.user_id %> 14 |

15 | 16 | 17 | <%= link_to 'Edit', edit_comment_path(@comment) %> | 18 | <%= link_to 'Back', comments_path %> 19 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categorizations.yml: -------------------------------------------------------------------------------- 1 | david_welcome_general: 2 | id: 1 3 | author_id: 1 4 | post_id: 1 5 | category_id: 1 6 | 7 | mary_thinking_sti: 8 | id: 2 9 | author_id: 2 10 | post_id: 2 11 | category_id: 3 12 | 13 | mary_thinking_general: 14 | id: 3 15 | author_id: 2 16 | post_id: 2 17 | category_id: 1 18 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/sponsors.yml: -------------------------------------------------------------------------------- 1 | moustache_club_sponsor_for_groucho: 2 | sponsor_club: moustache_club 3 | sponsorable: groucho (Member) 4 | boring_club_sponsor_for_groucho: 5 | sponsor_club: boring_club 6 | sponsorable: some_other_guy (Member) 7 | crazy_club_sponsor_for_groucho: 8 | sponsor_club: crazy_club 9 | sponsorable: some_other_guy (Member) -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb: -------------------------------------------------------------------------------- 1 | begin 2 | # See http://bogomips.org/fast_xs/ by Eric Wong 3 | require 'fast_xs' 4 | 5 | class String 6 | alias_method :original_xs, :to_xs if method_defined?(:to_xs) 7 | alias_method :to_xs, :fast_xs 8 | end 9 | rescue LoadError 10 | # fast_xs extension unavailable. 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/tasks/rails.rb: -------------------------------------------------------------------------------- 1 | $VERBOSE = nil 2 | 3 | # Load Rails rakefile extensions 4 | Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext } 5 | 6 | # Load any custom rakefile extensions 7 | Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext } 8 | Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext } 9 | -------------------------------------------------------------------------------- /app/views/comments/_new.html.erb: -------------------------------------------------------------------------------- 1 | <% form_for :comment, :url => photo_comments_url(@photo) do |f| %> 2 | <%= f.error_messages %> 3 |

4 | <%= f.label :title %>
5 | <%= f.text_field :title %> 6 |

7 |

8 | <%= f.label :body %>
9 | <%= f.text_area :body %> 10 |

11 |

12 | <%= f.submit "Create" %> 13 |

14 | <% end %> 15 | -------------------------------------------------------------------------------- /db/migrate/20080805100212_create_comments.rb: -------------------------------------------------------------------------------- 1 | class CreateComments < ActiveRecord::Migration 2 | def self.up 3 | create_table :comments do |t| 4 | t.string :title 5 | t.text :body 6 | t.integer :user_id 7 | t.integer :photo_id 8 | 9 | t.timestamps 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :comments 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/replies.yml: -------------------------------------------------------------------------------- 1 | witty_retort: 2 | id: 1 3 | topic_id: 1 4 | developer_id: 1 5 | content: Birdman is better! 6 | created_at: <%= 6.hours.ago.to_s(:db) %> 7 | updated_at: nil 8 | 9 | another: 10 | id: 2 11 | topic_id: 2 12 | developer_id: 1 13 | content: Nuh uh! 14 | created_at: <%= 1.hour.ago.to_s(:db) %> 15 | updated_at: nil -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/testing_sandbox.rb: -------------------------------------------------------------------------------- 1 | module TestingSandbox 2 | # Temporarily replaces KCODE for the block 3 | def with_kcode(kcode) 4 | if RUBY_VERSION < '1.9' 5 | old_kcode, $KCODE = $KCODE, kcode 6 | begin 7 | yield 8 | ensure 9 | $KCODE = old_kcode 10 | end 11 | else 12 | yield 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Array #:nodoc: 4 | module RandomAccess 5 | # Returns a random element from the array. 6 | def rand 7 | self[Kernel.rand(length)] 8 | end 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/railties/fresh_rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require(File.join(File.dirname(__FILE__), 'config', 'boot')) 5 | 6 | require 'rake' 7 | require 'rake/testtask' 8 | require 'rake/rdoctask' 9 | 10 | require 'tasks/rails' 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/parrot.rb: -------------------------------------------------------------------------------- 1 | class Parrot < ActiveRecord::Base 2 | set_inheritance_column :parrot_sti_class 3 | has_and_belongs_to_many :pirates 4 | has_and_belongs_to_many :treasures 5 | has_many :loots, :as => :looter 6 | end 7 | 8 | class LiveParrot < Parrot 9 | end 10 | 11 | class DeadParrot < Parrot 12 | belongs_to :killer, :class_name => 'Pirate' 13 | end 14 | -------------------------------------------------------------------------------- /app/models/photo.rb: -------------------------------------------------------------------------------- 1 | class Photo < ActiveRecord::Base 2 | has_many :comments 3 | 4 | has_attachment :storage => :file_system, 5 | :thumbnails => { :thumb => '160>' }, 6 | :content_type => :image 7 | validates_as_attachment 8 | 9 | belongs_to :user 10 | 11 | validates_presence_of :title, :if => Proc.new { |photo| photo.thumbnail.nil? } 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Skopje.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Skopje 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Skopje', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Zagreb.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Zagreb 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Zagreb', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | salary: 80000 5 | 6 | jamis: 7 | id: 2 8 | name: Jamis 9 | salary: 150000 10 | 11 | <% for digit in 3..10 %> 12 | dev_<%= digit %>: 13 | id: <%= digit %> 14 | name: fixture_<%= digit %> 15 | salary: 100000 16 | <% end %> 17 | 18 | poor_jamis: 19 | id: 11 20 | name: Jamis 21 | salary: 9000 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/developers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | salary: 80000 5 | 6 | jamis: 7 | id: 2 8 | name: Jamis 9 | salary: 150000 10 | 11 | <% for digit in 3..10 %> 12 | dev_<%= digit %>: 13 | id: <%= digit %> 14 | name: fixture_<%= digit %> 15 | salary: 100000 16 | <% end %> 17 | 18 | poor_jamis: 19 | id: 11 20 | name: Jamis 21 | salary: 9000 -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Ljubljana.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Ljubljana 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Ljubljana', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Sarajevo.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Sarajevo 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Sarajevo', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/companies.yml: -------------------------------------------------------------------------------- 1 | thirty_seven_signals: 2 | id: 1 3 | name: 37Signals 4 | rating: 4 5 | 6 | TextDrive: 7 | id: 2 8 | name: TextDrive 9 | rating: 4 10 | 11 | PlanetArgon: 12 | id: 3 13 | name: Planet Argon 14 | rating: 4 15 | 16 | Google: 17 | id: 4 18 | name: Google 19 | rating: 4 20 | 21 | Ionist: 22 | id: 5 23 | name: Ioni.st 24 | rating: 4 -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/beast.rb: -------------------------------------------------------------------------------- 1 | class BeastResource < ActiveResource::Base 2 | self.site = 'http://beast.caboo.se' 3 | site.user = 'foo' 4 | site.password = 'bar' 5 | end 6 | 7 | class Forum < BeastResource 8 | # taken from BeastResource 9 | # self.site = 'http://beast.caboo.se' 10 | end 11 | 12 | class Topic < BeastResource 13 | self.site += '/forums/:forum_id' 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Bratislava.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Bratislava 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Bratislava', 'Europe/Prague' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor.rb: -------------------------------------------------------------------------------- 1 | # Prefer gems to the bundled libs. 2 | require 'rubygems' 3 | 4 | begin 5 | gem 'tmail', '~> 1.2.3' 6 | rescue Gem::LoadError 7 | $:.unshift "#{File.dirname(__FILE__)}/vendor/tmail-1.2.3" 8 | end 9 | 10 | begin 11 | gem 'text-format', '>= 0.6.3' 12 | rescue Gem::LoadError 13 | $:.unshift "#{File.dirname(__FILE__)}/vendor/text-format-0.6.3" 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb: -------------------------------------------------------------------------------- 1 | <% replacement_function = update_element_function("products", :action => :update) do %> 2 |

Product 1

3 |

Product 2

4 | <% end %> 5 | <%= javascript_tag(replacement_function) %> 6 | 7 | <% update_element_function("status", :action => :update, :binding => binding) do %> 8 | You bought something! 9 | <% end %> 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/developers_projects.yml: -------------------------------------------------------------------------------- 1 | david_action_controller: 2 | developer_id: 1 3 | project_id: 2 4 | joined_on: 2004-10-10 5 | 6 | david_active_record: 7 | developer_id: 1 8 | project_id: 1 9 | joined_on: 2004-10-10 10 | 11 | jamis_active_record: 12 | developer_id: 2 13 | project_id: 1 14 | 15 | poor_jamis_active_record: 16 | developer_id: 11 17 | project_id: 1 -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/cache/drb_store.rb: -------------------------------------------------------------------------------- 1 | require 'drb' 2 | 3 | module ActiveSupport 4 | module Cache 5 | class DRbStore < MemoryStore #:nodoc: 6 | attr_reader :address 7 | 8 | def initialize(address = 'druby://localhost:9192') 9 | super() 10 | @address = address 11 | @data = DRbObject.new(nil, address) 12 | end 13 | end 14 | end 15 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Time #:nodoc: 4 | module Behavior 5 | # Enable more predictable duck-typing on Time-like classes. See 6 | # Object#acts_like?. 7 | def acts_like_time? 8 | true 9 | end 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails/info_controller.rb: -------------------------------------------------------------------------------- 1 | class Rails::InfoController < ActionController::Base 2 | def properties 3 | if consider_all_requests_local || local_request? 4 | render :inline => Rails::Info.to_html 5 | else 6 | render :text => '

For security purposes, this information is only available to local requests.

', :status => 500 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/test_case.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit/testcase' 2 | require 'active_support/testing/setup_and_teardown' 3 | require 'active_support/testing/default' 4 | 5 | # TODO: move to core_ext 6 | class Test::Unit::TestCase #:nodoc: 7 | include ActiveSupport::Testing::SetupAndTeardown 8 | end 9 | 10 | module ActiveSupport 11 | class TestCase < Test::Unit::TestCase 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb: -------------------------------------------------------------------------------- 1 | <% for attribute in attributes -%> 2 |

3 | <%= attribute.column.human_name %>: 4 | <%%=h @<%= singular_name %>.<%= attribute.name %> %> 5 |

6 | 7 | <% end -%> 8 | 9 | <%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> | 10 | <%%= link_to 'Back', <%= plural_name %>_path %> 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/database_statements_test.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | 3 | class DatabaseStatementsTest < ActiveRecord::TestCase 4 | def setup 5 | @connection = ActiveRecord::Base.connection 6 | end 7 | 8 | def test_insert_should_return_the_inserted_id 9 | id = @connection.insert("INSERT INTO accounts (firm_id,credit_limit) VALUES (42,5000)") 10 | assert_not_nil id 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new inflection rules using the following format 4 | # (all these examples are active by default): 5 | # Inflector.inflections do |inflect| 6 | # inflect.plural /^(ox)$/i, '\1en' 7 | # inflect.singular /^(ox)en/i, '\1' 8 | # inflect.irregular 'person', 'people' 9 | # inflect.uncountable %w( fish sheep ) 10 | # end 11 | -------------------------------------------------------------------------------- /lib/authenticated_test_helper.rb: -------------------------------------------------------------------------------- 1 | module AuthenticatedTestHelper 2 | # Sets the current user in the session from the user fixtures. 3 | def login_as(user) 4 | @request.session[:user_id] = user ? users(user).id : nil 5 | end 6 | 7 | def authorize_as(user) 8 | @request.env["HTTP_AUTHORIZATION"] = user ? ActionController::HttpAuthentication::Basic.encode_credentials(users(user).login, 'test') : nil 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Etc/UTC.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Etc 6 | module UTC 7 | include TimezoneDefinition 8 | 9 | timezone 'Etc/UTC' do |tz| 10 | tz.offset :o0, 0, 0, :UTC 11 | 12 | end 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb: -------------------------------------------------------------------------------- 1 | # Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call 2 | # will be forwarded to String. 3 | class ActiveSupport::Multibyte::Handlers::PassthruHandler #:nodoc: 4 | 5 | # Return the original byteoffset 6 | def self.translate_offset(string, byte_offset) #:nodoc: 7 | byte_offset 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | The 'rails' command creates a new Rails application with a default 3 | directory structure and configuration at the path you specify. 4 | 5 | Example: 6 | rails ~/Code/Ruby/weblog 7 | 8 | This generates a skeletal Rails installation in ~/Code/Ruby/weblog. 9 | See the README in the newly created application to get going. 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActionMailer::Base 2 | 3 | <% for action in actions -%> 4 | 5 | def <%= action %>(sent_at = Time.now) 6 | subject '<%= class_name %>#<%= action %>' 7 | recipients '' 8 | from '' 9 | sent_on sent_at 10 | 11 | body :greeting => 'Hi,' 12 | end 13 | <% end -%> 14 | 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/proc.rb: -------------------------------------------------------------------------------- 1 | class Proc #:nodoc: 2 | def bind(object) 3 | block, time = self, Time.now 4 | (class << object; self end).class_eval do 5 | method_name = "__bind_#{time.to_i}_#{time.usec}" 6 | define_method(method_name, &block) 7 | method = instance_method(method_name) 8 | remove_method(method_name) 9 | method 10 | end.bind(object) 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/date.rb: -------------------------------------------------------------------------------- 1 | class Date 2 | # Returns a JSON string representing the date. 3 | # 4 | # ==== Example: 5 | # Date.new(2005,2,1).to_json 6 | # # => "2005/02/01" 7 | def to_json(options = nil) 8 | if ActiveSupport.use_standard_json_time_format 9 | %("#{strftime("%Y-%m-%d")}") 10 | else 11 | %("#{strftime("%Y/%m/%d")}") 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/vertex.rb: -------------------------------------------------------------------------------- 1 | # This class models a vertex in a directed graph. 2 | class Vertex < ActiveRecord::Base 3 | has_many :sink_edges, :class_name => 'Edge', :foreign_key => 'source_id' 4 | has_many :sinks, :through => :sink_edges 5 | 6 | has_and_belongs_to_many :sources, 7 | :class_name => 'Vertex', :join_table => 'edges', 8 | :foreign_key => 'sink_id', :association_foreign_key => 'source_id' 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/numeric/time' 2 | require 'active_support/core_ext/numeric/bytes' 3 | require 'active_support/core_ext/numeric/conversions' 4 | 5 | class Numeric #:nodoc: 6 | include ActiveSupport::CoreExtensions::Numeric::Time 7 | include ActiveSupport::CoreExtensions::Numeric::Bytes 8 | include ActiveSupport::CoreExtensions::Numeric::Conversions 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb: -------------------------------------------------------------------------------- 1 |

Routing Error

2 |

<%=h @exception.message %>

3 | <% unless @exception.failures.empty? %>

4 |

Failure reasons:

5 |
    6 | <% @exception.failures.each do |route, reason| %> 7 |
  1. <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
  2. 8 | <% end %> 9 |
10 |

<% end %> 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories_posts.yml: -------------------------------------------------------------------------------- 1 | general_welcome: 2 | category_id: 1 3 | post_id: 1 4 | 5 | technology_welcome: 6 | category_id: 2 7 | post_id: 1 8 | 9 | general_thinking: 10 | category_id: 1 11 | post_id: 2 12 | 13 | general_sti_habtm: 14 | category_id: 1 15 | post_id: 6 16 | 17 | sti_test_sti_habtm: 18 | category_id: 3 19 | post_id: 6 20 | 21 | general_hello: 22 | category_id: 1 23 | post_id: 4 24 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/customers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | balance: 50 5 | address_street: Funny Street 6 | address_city: Scary Town 7 | address_country: Loony Land 8 | gps_location: 35.544623640962634x-105.9309951055148 9 | 10 | zaphod: 11 | id: 2 12 | name: Zaphod 13 | balance: 62 14 | address_street: Avenue Road 15 | address_city: Hamlet Town 16 | address_country: Nation Land 17 | gps_location: NULL -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/date.rb: -------------------------------------------------------------------------------- 1 | require 'date' 2 | require 'active_support/core_ext/date/behavior' 3 | require 'active_support/core_ext/date/calculations' 4 | require 'active_support/core_ext/date/conversions' 5 | 6 | class Date#:nodoc: 7 | include ActiveSupport::CoreExtensions::Date::Behavior 8 | include ActiveSupport::CoreExtensions::Date::Calculations 9 | include ActiveSupport::CoreExtensions::Date::Conversions 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Stubs out a new integration test. Pass the name of the test, either 3 | CamelCased or under_scored, as an argument. The new test class is 4 | generated in test/integration/testname_test.rb 5 | 6 | Example: 7 | `./script/generate integration_test GeneralStories` creates a GeneralStories 8 | integration test in test/integration/general_stories_test.rb 9 | -------------------------------------------------------------------------------- /app/views/sessions/new.html.erb: -------------------------------------------------------------------------------- 1 | <% form_tag session_path do -%> 2 |


3 | <%= text_field_tag 'login' %>

4 | 5 |


6 | <%= password_field_tag 'password' %>

7 | 8 | 12 | 13 |

<%= submit_tag 'Log in' %>

14 | <% end -%> 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | #-- 4 | # Copyright 2004 by Jim Weirich (jim@weirichhouse.org). 5 | # All rights reserved. 6 | 7 | # Permission is granted for use, copying, modification, distribution, 8 | # and distribution of modified versions of this work as long as the 9 | # above copyright notice is included. 10 | #++ 11 | 12 | require 'builder/xmlmarkup' 13 | require 'builder/xmlevents' 14 | -------------------------------------------------------------------------------- /vendor/rails/railties/configs/initializers/inflections.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new inflection rules using the following format 4 | # (all these examples are active by default): 5 | # ActiveSupport::Inflector.inflections do |inflect| 6 | # inflect.plural /^(ox)$/i, '\1en' 7 | # inflect.singular /^(ox)en/i, '\1' 8 | # inflect.irregular 'person', 'people' 9 | # inflect.uncountable %w( fish sheep ) 10 | # end 11 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This is a sample Rails gallery application developed by Alex Young (alexyoung.org) for a Linux Format tutorial. 2 | 3 | It has: 4 | 5 | * Simple photo management with some ajax editing 6 | * Comments 7 | * User management 8 | 9 | It's locked to Rails 2.1.1 right now, which is close to the version of Rails released when the tutorial came out. 10 | 11 | 12 | I've left my working data in there for you to play with, so login with: 13 | 14 | admin/test 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | # Makes backticks behave (somewhat more) similarly on all platforms. 3 | # On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the 4 | # spawned shell prints a message to stderr and sets $?. We emulate 5 | # Unix on the former but not the latter. 6 | def `(command) #:nodoc: 7 | super 8 | rescue Errno::ENOENT => e 9 | STDERR.puts "#$0: #{e}" 10 | end 11 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/date_time.rb: -------------------------------------------------------------------------------- 1 | class DateTime 2 | # Returns a JSON string representing the datetime. 3 | # 4 | # ==== Example: 5 | # DateTime.civil(2005,2,1,15,15,10).to_json 6 | # # => "2005/02/01 15:15:10 +0000" 7 | def to_json(options = nil) 8 | if ActiveSupport.use_standard_json_time_format 9 | xmlschema.inspect 10 | else 11 | strftime('"%Y/%m/%d %H:%M:%S %z"') 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/member.rb: -------------------------------------------------------------------------------- 1 | class Member < ActiveRecord::Base 2 | has_one :current_membership 3 | has_many :memberships 4 | has_many :fellow_members, :through => :club, :source => :members 5 | has_one :club, :through => :current_membership 6 | has_one :favourite_club, :through => :memberships, :conditions => ["memberships.favourite = ?", true], :source => :club 7 | has_one :sponsor, :as => :sponsorable 8 | has_one :sponsor_club, :through => :sponsor 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/tagging.rb: -------------------------------------------------------------------------------- 1 | # test that attr_readonly isn't called on the :taggable polymorphic association 2 | module Taggable 3 | end 4 | 5 | class Tagging < ActiveRecord::Base 6 | belongs_to :tag, :include => :tagging 7 | belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id' 8 | belongs_to :invalid_tag, :class_name => 'Tag', :foreign_key => 'tag_id' 9 | belongs_to :taggable, :polymorphic => true, :counter_cache => true 10 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/time.rb: -------------------------------------------------------------------------------- 1 | class Time 2 | # Returns a JSON string representing the time. 3 | # 4 | # ==== Example: 5 | # Time.utc(2005,2,1,15,15,10).to_json 6 | # # => 2005/02/01 15:15:10 +0000" 7 | def to_json(options = nil) 8 | if ActiveSupport.use_standard_json_time_format 9 | xmlschema.inspect 10 | else 11 | %("#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}") 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/ordered_options.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | class OrderedOptions < OrderedHash #:nodoc: 3 | def []=(key, value) 4 | super(key.to_sym, value) 5 | end 6 | 7 | def [](key) 8 | super(key.to_sym) 9 | end 10 | 11 | def method_missing(name, *args) 12 | if name.to_s =~ /(.*)=$/ 13 | self[$1.to_sym] = args.first 14 | else 15 | self[name] 16 | end 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Observer < ActiveRecord::Observer 2 | def after_create(<%= file_name %>) 3 | <%= class_name %>Mailer.deliver_signup_notification(<%= file_name %>) 4 | end 5 | 6 | def after_save(<%= file_name %>) 7 | <% if options[:include_activation] %> 8 | <%= class_name %>Mailer.deliver_activation(<%= file_name %>) if <%= file_name %>.recently_activated? 9 | <% end %> 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/accounts.yml: -------------------------------------------------------------------------------- 1 | signals37: 2 | id: 1 3 | firm_id: 1 4 | credit_limit: 50 5 | 6 | unknown: 7 | id: 2 8 | credit_limit: 50 9 | 10 | rails_core_account: 11 | id: 3 12 | firm_id: 6 13 | credit_limit: 50 14 | 15 | last_account: 16 | id: 4 17 | firm_id: 2 18 | credit_limit: 60 19 | 20 | rails_core_account_2: 21 | id: 5 22 | firm_id: 6 23 | credit_limit: 55 24 | 25 | odegy_account: 26 | id: 6 27 | firm_id: 9 28 | credit_limit: 53 29 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Pathname #:nodoc: 4 | module CleanWithin 5 | # Clean the paths contained in the provided string. 6 | def clean_within(string) 7 | string.gsub(%r{[\w. ]+(/[\w. ]+)+(\.rb)?(\b|$)}) do |path| 8 | new(path).cleanpath 9 | end 10 | end 11 | end 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Creates a migration to add the sessions table used by the Active Record 3 | session store. Pass the migration name, either CamelCased or under_scored, 4 | as an argument. 5 | 6 | Example: 7 | `./script/generate session_migration CreateSessionTable` 8 | 9 | With 4 existing migrations, this creates the AddSessionTable migration 10 | in db/migrate/005_add_session_table.rb 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/base64.rb: -------------------------------------------------------------------------------- 1 | begin 2 | require 'base64' 3 | rescue LoadError 4 | end 5 | 6 | module ActiveSupport 7 | if defined? ::Base64 8 | Base64 = ::Base64 9 | else 10 | # Ruby 1.9 doesn't provide base64, so we wrap this here 11 | module Base64 12 | 13 | def self.encode64(data) 14 | [data].pack("m") 15 | end 16 | 17 | def self.decode64(data) 18 | data.unpack("m").first 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/test/database.yml: -------------------------------------------------------------------------------- 1 | sqlite: 2 | :adapter: sqlite 3 | :dbfile: attachment_fu_plugin.sqlite.db 4 | sqlite3: 5 | :adapter: sqlite3 6 | :dbfile: attachment_fu_plugin.sqlite3.db 7 | postgresql: 8 | :adapter: postgresql 9 | :username: postgres 10 | :password: postgres 11 | :database: attachment_fu_plugin_test 12 | :min_messages: ERROR 13 | mysql: 14 | :adapter: mysql 15 | :host: localhost 16 | :username: rails 17 | :password: 18 | :database: attachment_fu_plugin_test -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb: -------------------------------------------------------------------------------- 1 | class <%= migration_name %> < ActiveRecord::Migration 2 | def self.up 3 | create_table :<%= table_name %> do |t| 4 | <% for attribute in attributes -%> 5 | t.<%= attribute.type %> :<%= attribute.name %> 6 | <% end -%> 7 | <% unless options[:skip_timestamps] %> 8 | t.timestamps 9 | <% end -%> 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :<%= table_name %> 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/active_resource/formats/json_format.rb: -------------------------------------------------------------------------------- 1 | module ActiveResource 2 | module Formats 3 | module JsonFormat 4 | extend self 5 | 6 | def extension 7 | "json" 8 | end 9 | 10 | def mime_type 11 | "application/json" 12 | end 13 | 14 | def encode(hash, options={}) 15 | hash.to_json 16 | end 17 | 18 | def decode(json) 19 | ActiveSupport::JSON.decode(json) 20 | end 21 | end 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /public/dispatch.rb: -------------------------------------------------------------------------------- 1 | #!/opt/local/bin/ruby 2 | 3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) 4 | 5 | # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: 6 | # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired 7 | require "dispatcher" 8 | 9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) 10 | Dispatcher.dispatch -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/taggings.yml: -------------------------------------------------------------------------------- 1 | welcome_general: 2 | id: 1 3 | tag_id: 1 4 | super_tag_id: 2 5 | taggable_id: 1 6 | taggable_type: Post 7 | 8 | thinking_general: 9 | id: 2 10 | tag_id: 1 11 | taggable_id: 2 12 | taggable_type: Post 13 | 14 | fake: 15 | id: 3 16 | tag_id: 1 17 | taggable_id: 1 18 | taggable_type: FakeModel 19 | 20 | godfather: 21 | id: 4 22 | tag_id: 1 23 | taggable_id: 1 24 | taggable_type: Item 25 | 26 | orphaned: 27 | id: 5 28 | tag_id: 1 29 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/object/conversions.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | # Alias of to_s. 3 | def to_param 4 | to_s 5 | end 6 | 7 | # Converts an object into a string suitable for use as a URL query string, using the given key as the 8 | # param name. 9 | # 10 | # Note: This method is defined as a default implementation for all Objects for Hash#to_query to work. 11 | def to_query(key) 12 | "#{CGI.escape(key.to_s)}=#{CGI.escape(to_param.to_s)}" 13 | end 14 | end -------------------------------------------------------------------------------- /public/dispatch.cgi: -------------------------------------------------------------------------------- 1 | #!/opt/local/bin/ruby 2 | 3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) 4 | 5 | # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: 6 | # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired 7 | require "dispatcher" 8 | 9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) 10 | Dispatcher.dispatch -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/adv_attr_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/abstract_unit' 2 | require 'action_mailer/adv_attr_accessor' 3 | 4 | class AdvAttrTest < Test::Unit::TestCase 5 | class Person 6 | include ActionMailer::AdvAttrAccessor 7 | adv_attr_accessor :name 8 | end 9 | 10 | def test_adv_attr 11 | bob = Person.new 12 | assert_nil bob.name 13 | bob.name 'Bob' 14 | assert_equal 'Bob', bob.name 15 | 16 | assert_raise(ArgumentError) {bob.name 'x', 'y'} 17 | end 18 | 19 | 20 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/base64/encoding.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Base64 #:nodoc: 4 | module Encoding 5 | # Encodes the value as base64 without the newline breaks. This makes the base64 encoding readily usable as URL parameters 6 | # or memcache keys without further processing. 7 | def encode64s(value) 8 | encode64(value).gsub(/\n/, '') 9 | end 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module CGI #:nodoc: 4 | module EscapeSkippingSlashes #:nodoc: 5 | def escape_skipping_slashes(str) 6 | str = str.join('/') if str.respond_to? :join 7 | str.gsub(/([^ \/a-zA-Z0-9_.-])/n) do 8 | "%#{$1.unpack('H2').first.upcase}" 9 | end.tr(' ', '+') 10 | end 11 | end 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/enumerable.rb: -------------------------------------------------------------------------------- 1 | module Enumerable 2 | # Returns a JSON string representing the enumerable. Any +options+ 3 | # given will be passed on to its elements. For example: 4 | # 5 | # users = User.find(:all) 6 | # # => users.to_json(:only => :name) 7 | # 8 | # will pass the :only => :name option to each user. 9 | def to_json(options = {}) #:nodoc: 10 | "[#{map { |value| ActiveSupport::JSON.encode(value, options) } * ', '}]" 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/cgi_ext.rb: -------------------------------------------------------------------------------- 1 | require 'action_controller/cgi_ext/stdinput' 2 | require 'action_controller/cgi_ext/query_extension' 3 | require 'action_controller/cgi_ext/cookie' 4 | require 'action_controller/cgi_ext/session' 5 | 6 | class CGI #:nodoc: 7 | include ActionController::CgiExt::Stdinput 8 | 9 | class << self 10 | alias :escapeHTML_fail_on_nil :escapeHTML 11 | 12 | def escapeHTML(string) 13 | escapeHTML_fail_on_nil(string) unless string.nil? 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/railties/configs/databases/sqlite2.yml: -------------------------------------------------------------------------------- 1 | # SQLite version 2.x 2 | # gem install sqlite-ruby 3 | development: 4 | adapter: sqlite 5 | database: db/development.sqlite2 6 | 7 | # Warning: The database defined as "test" will be erased and 8 | # re-generated from your development database when you run "rake". 9 | # Do not set this db to the same as development or production. 10 | test: 11 | adapter: sqlite 12 | database: db/test.sqlite2 13 | 14 | production: 15 | adapter: sqlite 16 | database: db/production.sqlite2 17 | -------------------------------------------------------------------------------- /test/fixtures/users.yml: -------------------------------------------------------------------------------- 1 | quentin: 2 | id: 1 3 | login: quentin 4 | email: quentin@example.com 5 | salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd 6 | crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1 # test 7 | created_at: <%= 5.days.ago.to_s :db %> 8 | 9 | 10 | 11 | aaron: 12 | id: 2 13 | login: aaron 14 | email: aaron@example.com 15 | salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd 16 | crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1 # test 17 | created_at: <%= 1.days.ago.to_s :db %> 18 | 19 | 20 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.erb: -------------------------------------------------------------------------------- 1 |

2 | <%=h @exception.class.to_s %> 3 | <% if request.parameters['controller'] %> 4 | in <%=h request.parameters['controller'].humanize %>Controller<% if request.parameters['action'] %>#<%=h request.parameters['action'] %><% end %> 5 | <% end %> 6 |

7 |
<%=h @exception.clean_message %>
8 | 9 | <%= render_file(@rescues_path + "/_trace.erb", false) %> 10 | 11 | <%= render_file(@rescues_path + "/_request_and_response.erb", false) %> 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/synonym_test_oracle.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | require 'models/topic' 3 | require 'models/subject' 4 | 5 | # confirm that synonyms work just like tables; in this case 6 | # the "subjects" table in Oracle (defined in oci.sql) is just 7 | # a synonym to the "topics" table 8 | 9 | class TestOracleSynonym < ActiveRecord::TestCase 10 | 11 | def test_oracle_synonym 12 | topic = Topic.new 13 | subject = Subject.new 14 | assert_equal(topic.attributes, subject.attributes) 15 | end 16 | 17 | end 18 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/servers/new_mongrel.rb: -------------------------------------------------------------------------------- 1 | unless defined?(Mongrel) 2 | abort "PROBLEM: Mongrel is not available on your system (or not in your path)" 3 | end 4 | 5 | require 'rails/mongrel_server/commands' 6 | 7 | GemPlugin::Manager.instance.load "rails::mongrel" => GemPlugin::INCLUDE, "rails" => GemPlugin::EXCLUDE 8 | 9 | case ARGV[0] ||= 'start' 10 | when 'start', 'stop', 'restart' 11 | ARGV[0] = "rails::mongrelserver::#{ARGV[0]}" 12 | end 13 | 14 | if not Mongrel::Command::Registry.instance.run ARGV 15 | exit 1 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Stubs out a new observer. Pass the observer name, either CamelCased or 3 | under_scored, as an argument. 4 | 5 | The generator creates an observer class in app/models and a unit test in 6 | test/unit. 7 | 8 | Example: 9 | `./script/generate observer Account` 10 | 11 | creates an Account observer and unit test: 12 | Observer: app/models/account_observer.rb 13 | Test: test/unit/account_observer_test.rb 14 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/header_test.rb: -------------------------------------------------------------------------------- 1 | require 'abstract_unit' 2 | 3 | class HeaderTest < Test::Unit::TestCase 4 | def setup 5 | @headers = ActionController::Http::Headers.new("HTTP_CONTENT_TYPE"=>"text/plain") 6 | end 7 | 8 | def test_content_type_works 9 | assert_equal "text/plain", @headers["Content-Type"] 10 | assert_equal "text/plain", @headers["content-type"] 11 | assert_equal "text/plain", @headers["CONTENT_TYPE"] 12 | assert_equal "text/plain", @headers["HTTP_CONTENT_TYPE"] 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Range #:nodoc: 4 | # Check if Ranges overlap. 5 | module Overlaps 6 | # Compare two ranges and see if they overlap eachother 7 | # (1..5).overlaps?(4..6) # => true 8 | # (1..5).overlaps?(7..9) # => false 9 | def overlaps?(other) 10 | include?(other.first) || other.include?(first) 11 | end 12 | end 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Harare.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Africa 6 | module Harare 7 | include TimezoneDefinition 8 | 9 | timezone 'Africa/Harare' do |tz| 10 | tz.offset :o0, 7452, 0, :LMT 11 | tz.offset :o1, 7200, 0, :CAT 12 | 13 | tz.transition 1903, 2, :o1, 1932939531, 800 14 | end 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kuwait.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Asia 6 | module Kuwait 7 | include TimezoneDefinition 8 | 9 | timezone 'Asia/Kuwait' do |tz| 10 | tz.offset :o0, 11516, 0, :LMT 11 | tz.offset :o1, 10800, 0, :AST 12 | 13 | tz.transition 1949, 12, :o1, 52558899121, 21600 14 | end 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Muscat.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Asia 6 | module Muscat 7 | include TimezoneDefinition 8 | 9 | timezone 'Asia/Muscat' do |tz| 10 | tz.offset :o0, 14060, 0, :LMT 11 | tz.offset :o1, 14400, 0, :GST 12 | 13 | tz.transition 1919, 12, :o1, 10464441137, 4320 14 | end 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Riyadh.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Asia 6 | module Riyadh 7 | include TimezoneDefinition 8 | 9 | timezone 'Asia/Riyadh' do |tz| 10 | tz.offset :o0, 11212, 0, :LMT 11 | tz.offset :o1, 10800, 0, :AST 12 | 13 | tz.transition 1949, 12, :o1, 52558899197, 21600 14 | end 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /vendor/rails/railties/dispatches/dispatch.rb: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | 3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) 4 | 5 | # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: 6 | # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired 7 | require "dispatcher" 8 | 9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) 10 | Dispatcher.dispatch -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml: -------------------------------------------------------------------------------- 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html 2 | 3 | <% unless attributes.empty? -%> 4 | one: 5 | <% for attribute in attributes -%> 6 | <%= attribute.name %>: <%= attribute.default %> 7 | <% end -%> 8 | 9 | two: 10 | <% for attribute in attributes -%> 11 | <%= attribute.name %>: <%= attribute.default %> 12 | <% end -%> 13 | <% else -%> 14 | # one: 15 | # column: value 16 | # 17 | # two: 18 | # column: value 19 | <% end -%> 20 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb: -------------------------------------------------------------------------------- 1 |

New <%= singular_name %>

2 | 3 | <%% form_for(@<%= singular_name %>) do |f| %> 4 | <%%= f.error_messages %> 5 | 6 | <% for attribute in attributes -%> 7 |

8 | <%%= f.label :<%= attribute.name %> %>
9 | <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> 10 |

11 | <% end -%> 12 |

13 | <%%= f.submit "Create" %> 14 |

15 | <%% end %> 16 | 17 | <%%= link_to 'Back', <%= plural_name %>_path %> 18 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActiveRecord::Migration 2 | def self.up 3 | create_table :<%= session_table_name %> do |t| 4 | t.string :session_id, :null => false 5 | t.text :data 6 | t.timestamps 7 | end 8 | 9 | add_index :<%= session_table_name %>, :session_id 10 | add_index :<%= session_table_name %>, :updated_at 11 | end 12 | 13 | def self.down 14 | drop_table :<%= session_table_name %> 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /test/unit/photo_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class PhotoTest < ActiveSupport::TestCase 4 | fixtures :photos 5 | 6 | def test_titles_are_required_on_create 7 | assert Photo.create.errors.on(:title) 8 | end 9 | 10 | def test_titles_are_required_on_update 11 | photo = photos(:one) 12 | photo.title = nil 13 | photo.save 14 | assert photo.errors.on(:title) 15 | end 16 | 17 | def test_titles_are_not_required_for_thumbnails 18 | assert photos(:thumbnail).valid? 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/login.html.erb: -------------------------------------------------------------------------------- 1 | <%% form_tag <%= controller_singular_name %>_path do -%> 2 |


3 | <%%= text_field_tag 'login' %>

4 | 5 |


6 | <%%= password_field_tag 'password' %>

7 | 8 | 12 | 13 |

<%%= submit_tag 'Log in' %>

14 | <%% end -%> 15 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_view/inline_template.rb: -------------------------------------------------------------------------------- 1 | module ActionView #:nodoc: 2 | class InlineTemplate < Template #:nodoc: 3 | 4 | def initialize(view, source, locals = {}, type = nil) 5 | @view = view 6 | @finder = @view.finder 7 | 8 | @source = source 9 | @extension = type 10 | @locals = locals || {} 11 | 12 | @handler = self.class.handler_class_for_extension(@extension).new(@view) 13 | end 14 | 15 | def method_key 16 | @source 17 | end 18 | 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/column_alias_test.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | require 'models/topic' 3 | 4 | class TestColumnAlias < ActiveRecord::TestCase 5 | fixtures :topics 6 | 7 | QUERY = if 'Oracle' == ActiveRecord::Base.connection.adapter_name 8 | 'SELECT id AS pk FROM topics WHERE ROWNUM < 2' 9 | else 10 | 'SELECT id AS pk FROM topics' 11 | end 12 | 13 | def test_column_alias 14 | records = Topic.connection.select_all(QUERY) 15 | assert_equal 'pk', records[0].keys[0] 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /app/views/photos/new.html.erb: -------------------------------------------------------------------------------- 1 |

New photo

2 | 3 | <%= error_messages_for :photo %> 4 | 5 | <% form_for(@photo, :html => { :multipart => true }) do |f| %> 6 |

7 | Title
8 | <%= f.text_field :title %> 9 |

10 | 11 |

12 | Description
13 | <%= f.text_area :description %> 14 |

15 | 16 |

17 | Photo
18 | <%= f.file_field :uploaded_data %> 19 |

20 | 21 |

22 | <%= f.submit "Create" %> 23 |

24 | <% end %> 25 | 26 | <%= link_to 'Back', photos_path %> 27 | -------------------------------------------------------------------------------- /app/views/users/new.html.erb: -------------------------------------------------------------------------------- 1 | <%= error_messages_for :user %> 2 | <% form_for :user, :url => users_path do |f| -%> 3 |


4 | <%= f.text_field :login %>

5 | 6 |


7 | <%= f.text_field :email %>

8 | 9 |


10 | <%= f.password_field :password %>

11 | 12 |


13 | <%= f.password_field :password_confirmation %>

14 | 15 |

<%= submit_tag 'Sign up' %>

16 | <% end -%> 17 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/logger.rb: -------------------------------------------------------------------------------- 1 | # Adds the 'around_level' method to Logger. 2 | 3 | class Logger 4 | def self.define_around_helper(level) 5 | module_eval <<-end_eval 6 | def around_#{level}(before_message, after_message, &block) 7 | self.#{level}(before_message) 8 | return_value = block.call(self) 9 | self.#{level}(after_message) 10 | return return_value 11 | end 12 | end_eval 13 | end 14 | [:debug, :info, :error, :fatal].each {|level| define_around_helper(level) } 15 | 16 | end -------------------------------------------------------------------------------- /app/controllers/application.rb: -------------------------------------------------------------------------------- 1 | # Filters added to this controller apply to all controllers in the application. 2 | # Likewise, all the methods added will be available for all controllers. 3 | 4 | class ApplicationController < ActionController::Base 5 | helper :all # include all helpers, all the time 6 | 7 | include AuthenticatedSystem 8 | 9 | # See ActionController::RequestForgeryProtection for details 10 | # Uncomment the :secret if you're not using the cookie session store 11 | protect_from_forgery # :secret => '70261a0d719694b5c5af2ba00c65644a' 12 | end 13 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # Methods added to this helper will be available to all templates in the application. 2 | module ApplicationHelper 3 | def in_place_editor_if(condition, object, field, &block) 4 | if condition 5 | object_id = "#{object.class.name.downcase}_#{field}_#{object.id}" 6 | in_place_class = "in_place_#{field}" 7 | 8 | concat '' % [object_id, in_place_class], block.binding 9 | yield 10 | concat '', block.binding 11 | else 12 | yield 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/views/comments/edit.html.erb: -------------------------------------------------------------------------------- 1 |

Editing comment

2 | 3 | <% form_for(@comment) do |f| %> 4 | <%= f.error_messages %> 5 | 6 |

7 | <%= f.label :title %>
8 | <%= f.text_field :title %> 9 |

10 |

11 | <%= f.label :body %>
12 | <%= f.text_area :body %> 13 |

14 |

15 | <%= f.label :user_id %>
16 | <%= f.text_field :user_id %> 17 |

18 |

19 | <%= f.submit "Update" %> 20 |

21 | <% end %> 22 | 23 | <%= link_to 'Show', @comment %> | 24 | <%= link_to 'Back', comments_path %> 25 | -------------------------------------------------------------------------------- /db/migrate/002_create_photos.rb: -------------------------------------------------------------------------------- 1 | class CreatePhotos < ActiveRecord::Migration 2 | def self.up 3 | create_table :photos do |t| 4 | t.string :title 5 | t.text :description 6 | t.string :filename 7 | t.string :content_type 8 | t.string :path 9 | t.integer :parent_id 10 | t.string :thumbnail 11 | t.integer :size 12 | t.integer :user_id 13 | t.integer :width 14 | t.integer :height 15 | 16 | t.timestamps 17 | end 18 | end 19 | 20 | def self.down 21 | drop_table :photos 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /test/functional/comments_controller_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class CommentsControllerTest < ActionController::TestCase 4 | def test_should_create_comment 5 | login_as :quentin 6 | assert_difference('Comment.count') do 7 | post :create, :comment => { :title => 'Example', :body => 'Example 2' }, :photo_id => photos(:one).id 8 | assert_valid assigns(:comment) 9 | assert_kind_of Photo, assigns(:comment).photo 10 | end 11 | 12 | assert_redirected_to photo_url(assigns(:photo)) 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/range.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/range/conversions' 2 | require 'active_support/core_ext/range/overlaps' 3 | require 'active_support/core_ext/range/include_range' 4 | require 'active_support/core_ext/range/blockless_step' 5 | 6 | class Range #:nodoc: 7 | include ActiveSupport::CoreExtensions::Range::Conversions 8 | include ActiveSupport::CoreExtensions::Range::Overlaps 9 | include ActiveSupport::CoreExtensions::Range::IncludeRange 10 | include ActiveSupport::CoreExtensions::Range::BlocklessStep 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/ruby_version_check.rb: -------------------------------------------------------------------------------- 1 | min_release = "1.8.2 (2004-12-25)" 2 | ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})" 3 | if ruby_release =~ /1\.8\.3/ 4 | abort <<-end_message 5 | 6 | Rails does not work with Ruby version 1.8.3. 7 | Please upgrade to version 1.8.4 or downgrade to 1.8.2. 8 | 9 | end_message 10 | elsif ruby_release < min_release 11 | abort <<-end_message 12 | 13 | Rails requires Ruby version #{min_release} or later. 14 | You're running #{ruby_release}; please upgrade to continue. 15 | 16 | end_message 17 | end 18 | -------------------------------------------------------------------------------- /vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_test_helper.rb: -------------------------------------------------------------------------------- 1 | module AuthenticatedTestHelper 2 | # Sets the current <%= file_name %> in the session from the <%= file_name %> fixtures. 3 | def login_as(<%= file_name %>) 4 | @request.session[:<%= file_name %>_id] = <%= file_name %> ? <%= table_name %>(<%= file_name %>).id : nil 5 | end 6 | 7 | def authorize_as(user) 8 | @request.env["HTTP_AUTHORIZATION"] = user ? ActionController::HttpAuthentication::Basic.encode_credentials(users(user).login, 'test') : nil 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb: -------------------------------------------------------------------------------- 1 | module ActionController #:nodoc: 2 | module Caching 3 | module SqlCache 4 | def self.included(base) #:nodoc: 5 | if defined?(ActiveRecord) && ActiveRecord::Base.respond_to?(:cache) 6 | base.alias_method_chain :perform_action, :caching 7 | end 8 | end 9 | 10 | protected 11 | def perform_action_with_caching 12 | ActiveRecord::Base.cache do 13 | perform_action_without_caching 14 | end 15 | end 16 | end 17 | end 18 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Atlantic/South_Georgia.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Atlantic 6 | module South_Georgia 7 | include TimezoneDefinition 8 | 9 | timezone 'Atlantic/South_Georgia' do |tz| 10 | tz.offset :o0, -8768, 0, :LMT 11 | tz.offset :o1, -7200, 0, :GST 12 | 13 | tz.transition 1890, 1, :o1, 1627673806, 675 14 | end 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/date_time.rb: -------------------------------------------------------------------------------- 1 | require 'date' 2 | require 'active_support/core_ext/time/behavior' 3 | require 'active_support/core_ext/time/zones' 4 | require 'active_support/core_ext/date_time/calculations' 5 | require 'active_support/core_ext/date_time/conversions' 6 | 7 | class DateTime 8 | include ActiveSupport::CoreExtensions::Time::Behavior 9 | include ActiveSupport::CoreExtensions::Time::Zones 10 | include ActiveSupport::CoreExtensions::DateTime::Calculations 11 | include ActiveSupport::CoreExtensions::DateTime::Conversions 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb: -------------------------------------------------------------------------------- 1 | unless :to_proc.respond_to?(:to_proc) 2 | class Symbol 3 | # Turns the symbol into a simple proc, which is especially useful for enumerations. Examples: 4 | # 5 | # # The same as people.collect { |p| p.name } 6 | # people.collect(&:name) 7 | # 8 | # # The same as people.select { |p| p.manager? }.collect { |p| p.salary } 9 | # people.select(&:manager?).collect(&:salary) 10 | def to_proc 11 | Proc.new { |*args| args.shift.__send__(self, *args) } 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/schema/mysql_specific_schema.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define do 2 | create_table :binary_fields, :force => true, :options => 'CHARACTER SET latin1' do |t| 3 | t.binary :tiny_blob, :limit => 255 4 | t.binary :normal_blob, :limit => 65535 5 | t.binary :medium_blob, :limit => 16777215 6 | t.binary :long_blob, :limit => 2147483647 7 | t.text :tiny_text, :limit => 255 8 | t.text :normal_text, :limit => 65535 9 | t.text :medium_text, :limit => 16777215 10 | t.text :long_text, :limit => 2147483647 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module Cache 3 | class CompressedMemCacheStore < MemCacheStore 4 | def read(name, options = nil) 5 | if value = super(name, (options || {}).merge(:raw => true)) 6 | Marshal.load(ActiveSupport::Gzip.decompress(value)) 7 | end 8 | end 9 | 10 | def write(name, value, options = nil) 11 | super(name, ActiveSupport::Gzip.compress(Marshal.dump(value)), (options || {}).merge(:raw => true)) 12 | end 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb: -------------------------------------------------------------------------------- 1 | module Kernel 2 | unless respond_to?(:debugger) 3 | # Starts a debugging session if ruby-debug has been loaded (call script/server --debugger to do load it). 4 | def debugger 5 | RAILS_DEFAULT_LOGGER.info "\n***** Debugger requested, but was not available: Start server with --debugger to enable *****\n" 6 | end 7 | end 8 | 9 | def breakpoint 10 | RAILS_DEFAULT_LOGGER.info "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n" 11 | debugger 12 | end 13 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands.rb: -------------------------------------------------------------------------------- 1 | commands = Dir["#{File.dirname(__FILE__)}/commands/*.rb"].collect { |file_path| File.basename(file_path).split(".").first } 2 | 3 | if commands.include?(ARGV.first) 4 | require "#{File.dirname(__FILE__)}/commands/#{ARGV.shift}" 5 | else 6 | puts <<-USAGE 7 | The 'run' provides a unified access point for all the default Rails' commands. 8 | 9 | Usage: ./script/run [OPTIONS] 10 | 11 | Examples: 12 | ./script/run generate controller Admin 13 | ./script/run process reaper 14 | 15 | USAGE 16 | puts "Choose: #{commands.join(", ")}" 17 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/memberships.yml: -------------------------------------------------------------------------------- 1 | membership_of_boring_club: 2 | joined_on: <%= 3.weeks.ago.to_s(:db) %> 3 | club: boring_club 4 | member: groucho 5 | favourite: false 6 | type: CurrentMembership 7 | 8 | membership_of_favourite_club: 9 | joined_on: <%= 3.weeks.ago.to_s(:db) %> 10 | club: moustache_club 11 | member: groucho 12 | favourite: true 13 | type: Membership 14 | 15 | other_guys_membership: 16 | joined_on: <%= 4.weeks.ago.to_s(:db) %> 17 | club: boring_club 18 | member: some_other_guy 19 | favourite: false 20 | type: CurrentMembership 21 | -------------------------------------------------------------------------------- /app/views/photos/_photo.html.erb: -------------------------------------------------------------------------------- 1 |
2 |

3 | <% in_place_editor_if current_user, photo, :title do %><%= h photo.title %><% end %> 4 | <%= link_to 'Edit', edit_photo_path(photo) %> 5 | <%= link_to 'Delete', photo, :confirm => 'Are you sure?', :method => :delete %> 6 |

7 |

Added on <%= photo.created_at.to_date.to_s :long %>

8 | 9 | <%= link_to image_tag(photo.public_filename(:thumb)), photo %> 10 | 11 |

<% in_place_editor_if current_user, photo, :description do %><%= textilize_without_paragraph h(photo.description) %><% end %>

12 |
-------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- 1 | # SQLite version 3.x 2 | # gem install sqlite3-ruby (not necessary on OS X Leopard) 3 | development: 4 | adapter: sqlite3 5 | database: db/development.sqlite3 6 | timeout: 5000 7 | 8 | # Warning: The database defined as 'test' will be erased and 9 | # re-generated from your development database when you run 'rake'. 10 | # Do not set this db to the same as development or production. 11 | test: 12 | adapter: sqlite3 13 | database: db/test.sqlite3 14 | timeout: 5000 15 | 16 | production: 17 | adapter: sqlite3 18 | database: db/production.sqlite3 19 | timeout: 5000 20 | -------------------------------------------------------------------------------- /vendor/plugins/attachment_fu/test/backends/db_file_test.rb: -------------------------------------------------------------------------------- 1 | require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper')) 2 | 3 | class DbFileTest < Test::Unit::TestCase 4 | include BaseAttachmentTests 5 | attachment_model Attachment 6 | 7 | def test_should_call_after_attachment_saved(klass = Attachment) 8 | attachment_model.saves = 0 9 | assert_created do 10 | upload_file :filename => '/files/rails.png' 11 | end 12 | assert_equal 1, attachment_model.saves 13 | end 14 | 15 | test_against_subclass :test_should_call_after_attachment_saved, Attachment 16 | end -------------------------------------------------------------------------------- /app/views/photos/edit.html.erb: -------------------------------------------------------------------------------- 1 |

Editing photo

2 | 3 | <%= error_messages_for :photo %> 4 | 5 | <% form_for(@photo, :html => { :multipart => true }) do |f| %> 6 |

7 | Title
8 | <%= f.text_field :title %> 9 |

10 | 11 |

12 | Description
13 | <%= f.text_area :description %> 14 |

15 | 16 |

17 | Photo
18 | <%= f.file_field :uploaded_data %> 19 |

20 | 21 |

22 | <%= f.submit "Update" %> 23 |

24 | <% end %> 25 | 26 | <%= link_to 'Show', @photo %> | 27 | <%= link_to 'Back', photos_path %> 28 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails/gem_builder.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'rubygems/installer' 3 | 4 | module Rails 5 | 6 | # this class hijacks the functionality of Gem::Installer by overloading its 7 | # initializer to only provide the information needed by 8 | # Gem::Installer#build_extensions (which happens to be what we have) 9 | class GemBuilder < Gem::Installer 10 | 11 | def initialize(spec, gem_dir) 12 | @spec = spec 13 | @gem_dir = gem_dir 14 | end 15 | 16 | # silence the underlying builder 17 | def say(message) 18 | end 19 | 20 | end 21 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb: -------------------------------------------------------------------------------- 1 |

Editing <%= singular_name %>

2 | 3 | <%% form_for(@<%= singular_name %>) do |f| %> 4 | <%%= f.error_messages %> 5 | 6 | <% for attribute in attributes -%> 7 |

8 | <%%= f.label :<%= attribute.name %> %>
9 | <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> 10 |

11 | <% end -%> 12 |

13 | <%%= f.submit "Update" %> 14 |

15 | <%% end %> 16 | 17 | <%%= link_to 'Show', @<%= singular_name %> %> | 18 | <%%= link_to 'Back', <%= plural_name %>_path %> 19 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/person.rb: -------------------------------------------------------------------------------- 1 | class Person < ActiveRecord::Base 2 | has_many :readers 3 | has_many :posts, :through => :readers 4 | has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null' 5 | 6 | has_many :references 7 | has_many :jobs, :through => :references 8 | has_one :favourite_reference, :class_name => 'Reference', :conditions => ['favourite=?', true] 9 | has_many :posts_with_comments_sorted_by_comment_id, :through => :readers, :source => :post, :include => :comments, :order => 'comments.id' 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/active_resource/formats.rb: -------------------------------------------------------------------------------- 1 | module ActiveResource 2 | module Formats 3 | # Lookup the format class from a mime type reference symbol. Example: 4 | # 5 | # ActiveResource::Formats[:xml] # => ActiveResource::Formats::XmlFormat 6 | # ActiveResource::Formats[:json] # => ActiveResource::Formats::JsonFormat 7 | def self.[](mime_type_reference) 8 | ActiveResource::Formats.const_get(mime_type_reference.to_s.camelize + "Format") 9 | end 10 | end 11 | end 12 | 13 | require 'active_resource/formats/xml_format' 14 | require 'active_resource/formats/json_format' -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb: -------------------------------------------------------------------------------- 1 | # Add a +missing_name+ method to NameError instances. 2 | class NameError #:nodoc: 3 | # Add a method to obtain the missing name from a NameError. 4 | def missing_name 5 | $1 if /((::)?([A-Z]\w*)(::[A-Z]\w*)*)$/ =~ message 6 | end 7 | 8 | # Was this exception raised because the given name was missing? 9 | def missing_name?(name) 10 | if name.is_a? Symbol 11 | last_name = (missing_name || '').split('::').last 12 | last_name == name.to_s 13 | else 14 | missing_name == name.to_s 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/parrots.yml: -------------------------------------------------------------------------------- 1 | george: 2 | name: "Curious George" 3 | treasures: diamond, sapphire 4 | parrot_sti_class: LiveParrot 5 | 6 | louis: 7 | name: "King Louis" 8 | treasures: [diamond, sapphire] 9 | parrot_sti_class: LiveParrot 10 | 11 | frederick: 12 | name: $LABEL 13 | parrot_sti_class: LiveParrot 14 | 15 | polly: 16 | id: 4 17 | name: $LABEL 18 | killer: blackbeard 19 | treasures: sapphire, ruby 20 | parrot_sti_class: DeadParrot 21 | 22 | DEFAULTS: &DEFAULTS 23 | treasures: sapphire, ruby 24 | parrot_sti_class: LiveParrot 25 | 26 | davey: 27 | <<: *DEFAULTS 28 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb: -------------------------------------------------------------------------------- 1 | class GiveMeBigNumbers < ActiveRecord::Migration 2 | def self.up 3 | create_table :big_numbers do |table| 4 | table.column :bank_balance, :decimal, :precision => 10, :scale => 2 5 | table.column :big_bank_balance, :decimal, :precision => 15, :scale => 2 6 | table.column :world_population, :decimal, :precision => 10 7 | table.column :my_house_population, :decimal, :precision => 2 8 | table.column :value_of_e, :decimal 9 | end 10 | end 11 | 12 | def self.down 13 | drop_table :big_numbers 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/contact.rb: -------------------------------------------------------------------------------- 1 | class Contact < ActiveRecord::Base 2 | # mock out self.columns so no pesky db is needed for these tests 3 | def self.column(name, sql_type = nil, options = {}) 4 | @columns ||= [] 5 | @columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, options[:default], sql_type.to_s, options[:null]) 6 | end 7 | 8 | column :name, :string 9 | column :age, :integer 10 | column :avatar, :binary 11 | column :created_at, :datetime 12 | column :awesome, :boolean 13 | column :preferences, :string 14 | 15 | serialize :preferences 16 | end -------------------------------------------------------------------------------- /vendor/rails/railties/configs/databases/sqlite3.yml: -------------------------------------------------------------------------------- 1 | # SQLite version 3.x 2 | # gem install sqlite3-ruby (not necessary on OS X Leopard) 3 | development: 4 | adapter: sqlite3 5 | database: db/development.sqlite3 6 | timeout: 5000 7 | 8 | # Warning: The database defined as "test" will be erased and 9 | # re-generated from your development database when you run "rake". 10 | # Do not set this db to the same as development or production. 11 | test: 12 | adapter: sqlite3 13 | database: db/test.sqlite3 14 | timeout: 5000 15 | 16 | production: 17 | adapter: sqlite3 18 | database: db/production.sqlite3 19 | timeout: 5000 20 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/raw_email: -------------------------------------------------------------------------------- 1 | From jamis_buck@byu.edu Mon May 2 16:07:05 2005 2 | Mime-Version: 1.0 (Apple Message framework v622) 3 | Content-Transfer-Encoding: base64 4 | Message-Id: 5 | Content-Type: text/plain; 6 | charset=EUC-KR; 7 | format=flowed 8 | To: willard15georgina@jamis.backpackit.com 9 | From: Jamis Buck 10 | Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= 11 | Date: Mon, 2 May 2005 16:07:05 -0600 12 | 13 | tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin 14 | wLogSmFtaXPA1LTPtNku 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/module/model_naming.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | class ModelName < String 3 | attr_reader :singular, :plural, :partial_path 4 | 5 | def initialize(name) 6 | super 7 | @singular = underscore.tr('/', '_').freeze 8 | @plural = @singular.pluralize.freeze 9 | @partial_path = "#{tableize}/#{demodulize.underscore}".freeze 10 | end 11 | end 12 | 13 | module CoreExt 14 | module Module 15 | module ModelNaming 16 | def model_name 17 | @model_name ||= ModelName.new(name) 18 | end 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kabul.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Asia 6 | module Kabul 7 | include TimezoneDefinition 8 | 9 | timezone 'Asia/Kabul' do |tz| 10 | tz.offset :o0, 16608, 0, :LMT 11 | tz.offset :o1, 14400, 0, :AFT 12 | tz.offset :o2, 16200, 0, :AFT 13 | 14 | tz.transition 1889, 12, :o1, 2170231477, 900 15 | tz.transition 1944, 12, :o2, 7294369, 3 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/active_record/query_cache.rb: -------------------------------------------------------------------------------- 1 | module ActiveRecord 2 | module QueryCache 3 | # Enable the query cache within the block if Active Record is configured. 4 | def cache(&block) 5 | if ActiveRecord::Base.configurations.blank? 6 | yield 7 | else 8 | connection.cache(&block) 9 | end 10 | end 11 | 12 | # Disable the query cache within the block if Active Record is configured. 13 | def uncached(&block) 14 | if ActiveRecord::Base.configurations.blank? 15 | yield 16 | else 17 | connection.uncached(&block) 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Katmandu.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Asia 6 | module Katmandu 7 | include TimezoneDefinition 8 | 9 | timezone 'Asia/Katmandu' do |tz| 10 | tz.offset :o0, 20476, 0, :LMT 11 | tz.offset :o1, 19800, 0, :IST 12 | tz.offset :o2, 20700, 0, :NPT 13 | 14 | tz.transition 1919, 12, :o1, 52322204081, 21600 15 | tz.transition 1985, 12, :o2, 504901800 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Majuro.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Pacific 6 | module Majuro 7 | include TimezoneDefinition 8 | 9 | timezone 'Pacific/Majuro' do |tz| 10 | tz.offset :o0, 41088, 0, :LMT 11 | tz.offset :o1, 39600, 0, :MHT 12 | tz.offset :o2, 43200, 0, :MHT 13 | 14 | tz.transition 1900, 12, :o1, 1086923261, 450 15 | tz.transition 1969, 9, :o2, 58571881, 24 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject: -------------------------------------------------------------------------------- 1 | From jamis@37signals.com Mon May 2 16:07:05 2005 2 | Mime-Version: 1.0 (Apple Message framework v622) 3 | Content-Transfer-Encoding: base64 4 | Message-Id: 5 | Content-Type: text/plain; 6 | charset=EUC-KR; 7 | format=flowed 8 | To: jamis@37signals.com 9 | From: Jamis Buck 10 | Subject: Re: Test: =?UTF-8?B?Iua8ouWtlyI=?= mid =?UTF-8?B?Iua8ouWtlyI=?= tail 11 | Date: Mon, 2 May 2005 16:07:05 -0600 12 | 13 | tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin 14 | wLogSmFtaXPA1LTPtNku 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/connections/native_openbase/connection.rb: -------------------------------------------------------------------------------- 1 | print "Using native OpenBase\n" 2 | require_dependency 'models/course' 3 | require 'logger' 4 | 5 | ActiveRecord::Base.logger = Logger.new("debug.log") 6 | 7 | ActiveRecord::Base.configurations = { 8 | 'arunit' => { 9 | :adapter => 'openbase', 10 | :username => 'admin', 11 | :database => 'activerecord_unittest', 12 | }, 13 | 'arunit2' => { 14 | :adapter => 'openbase', 15 | :username => 'admin', 16 | :database => 'activerecord_unittest2' 17 | } 18 | } 19 | 20 | ActiveRecord::Base.establish_connection 'arunit' 21 | Course.establish_connection 'arunit2' 22 | --------------------------------------------------------------------------------