{"id":22354357,"url":"https://github.com/jonmagic/foreverrememberme","last_synced_at":"2025-07-03T22:34:21.359Z","repository":{"id":2182794,"uuid":"3130239","full_name":"jonmagic/foreverrememberme","owner":"jonmagic","description":null,"archived":false,"fork":false,"pushed_at":"2012-01-08T14:49:11.000Z","size":3896,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-04T16:08:11.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmagic.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-08T14:48:15.000Z","updated_at":"2021-06-29T21:35:40.000Z","dependencies_parsed_at":"2022-08-19T07:10:16.678Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/foreverrememberme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonmagic/foreverrememberme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fforeverrememberme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fforeverrememberme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fforeverrememberme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fforeverrememberme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/foreverrememberme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fforeverrememberme/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263415758,"owners_count":23463104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T13:12:23.812Z","updated_at":"2025-07-03T22:34:21.332Z","avatar_url":"https://github.com/jonmagic.png","language":"JavaScript","readme":"== Welcome to Rails\n\nRails is a web-application and persistence framework that includes everything\nneeded to create database-backed web-applications according to the\nModel-View-Control pattern of separation. This pattern splits the view (also\ncalled the presentation) into \"dumb\" templates that are primarily responsible\nfor inserting pre-built data in between HTML tags. The model contains the\n\"smart\" domain objects (such as Account, Product, Person, Post) that holds all\nthe business logic and knows how to persist themselves to a database. The\ncontroller handles the incoming requests (such as Save New Account, Update\nProduct, Show Post) by manipulating the model and directing data to the view.\n\nIn Rails, the model is handled by what's called an object-relational mapping\nlayer entitled Active Record. This layer allows you to present the data from\ndatabase rows as objects and embellish these data objects with business logic\nmethods. You can read more about Active Record in \nlink:files/vendor/rails/activerecord/README.html.\n\nThe controller and view are handled by the Action Pack, which handles both\nlayers by its two parts: Action View and Action Controller. These two layers\nare bundled in a single package due to their heavy interdependence. This is\nunlike the relationship between the Active Record and Action Pack that is much\nmore separate. Each of these packages can be used independently outside of\nRails.  You can read more about Action Pack in \nlink:files/vendor/rails/actionpack/README.html.\n\n\n== Getting started\n\n1. Run the WEBrick servlet: \u003ctt\u003eruby script/server\u003c/tt\u003e (run with --help for options)\n   ...or if you have lighttpd installed: \u003ctt\u003eruby script/lighttpd\u003c/tt\u003e (it's faster)\n2. Go to http://localhost:3000/ and get \"Congratulations, you've put Ruby on Rails!\"\n3. Follow the guidelines on the \"Congratulations, you've put Ruby on Rails!\" screen\n\n\n== Example for Apache conf\n\n  \u003cVirtualHost *:80\u003e\n    ServerName rails\n    DocumentRoot /path/application/public/\n    ErrorLog /path/application/log/server.log\n  \n    \u003cDirectory /path/application/public/\u003e\n      Options ExecCGI FollowSymLinks\n      AllowOverride all\n      Allow from all\n      Order allow,deny\n    \u003c/Directory\u003e\n  \u003c/VirtualHost\u003e\n\nNOTE: Be sure that CGIs can be executed in that directory as well. So ExecCGI\nshould be on and \".cgi\" should respond. All requests from 127.0.0.1 go\nthrough CGI, so no Apache restart is necessary for changes. All other requests\ngo through FCGI (or mod_ruby), which requires a restart to show changes.\n\n\n== Debugging Rails\n\nHave \"tail -f\" commands running on both the server.log, production.log, and\ntest.log files. Rails will automatically display debugging and runtime\ninformation to these files. Debugging info will also be shown in the browser\non requests from 127.0.0.1.\n\n\n== Breakpoints\n\nBreakpoint support is available through the script/breakpointer client. This\nmeans that you can break out of execution at any point in the code, investigate\nand change the model, AND then resume execution! Example:\n\n  class WeblogController \u003c ActionController::Base\n    def index\n      @posts = Post.find_all\n      breakpoint \"Breaking out from the list\"\n    end\n  end\n  \nSo the controller will accept the action, run the first line, then present you\nwith a IRB prompt in the breakpointer window. Here you can do things like:\n\nExecuting breakpoint \"Breaking out from the list\" at .../webrick_server.rb:16 in 'breakpoint'\n\n  \u003e\u003e @posts.inspect\n  =\u003e \"[#\u003cPost:0x14a6be8 @attributes={\\\"title\\\"=\u003enil, \\\"body\\\"=\u003enil, \\\"id\\\"=\u003e\\\"1\\\"}\u003e, \n       #\u003cPost:0x14a6620 @attributes={\\\"title\\\"=\u003e\\\"Rails you know!\\\", \\\"body\\\"=\u003e\\\"Only ten..\\\", \\\"id\\\"=\u003e\\\"2\\\"}\u003e]\"\n  \u003e\u003e @posts.first.title = \"hello from a breakpoint\"\n  =\u003e \"hello from a breakpoint\"\n\n...and even better is that you can examine how your runtime objects actually work:\n\n  \u003e\u003e f = @posts.first \n  =\u003e #\u003cPost:0x13630c4 @attributes={\"title\"=\u003enil, \"body\"=\u003enil, \"id\"=\u003e\"1\"}\u003e\n  \u003e\u003e f.\n  Display all 152 possibilities? (y or n)\n\nFinally, when you're ready to resume execution, you press CTRL-D\n\n\n== Console\n\nYou can interact with the domain model by starting the console through script/console. \nHere you'll have all parts of the application configured, just like it is when the\napplication is running. You can inspect domain models, change values, and save to the\ndatabase. Starting the script without arguments will launch it in the development environment.\nPassing an argument will specify a different environment, like \u003ctt\u003econsole production\u003c/tt\u003e.\n\n\n== Description of contents\n\napp\n  Holds all the code that's specific to this particular application.\n\napp/controllers\n  Holds controllers that should be named like weblog_controller.rb for\n  automated URL mapping. All controllers should descend from\n  ActionController::Base.\n\napp/models\n  Holds models that should be named like post.rb.\n  Most models will descend from ActiveRecord::Base.\n  \napp/views\n  Holds the template files for the view that should be named like\n  weblog/index.rhtml for the WeblogController#index action. All views use eRuby\n  syntax. This directory can also be used to keep stylesheets, images, and so on\n  that can be symlinked to public.\n  \napp/helpers\n  Holds view helpers that should be named like weblog_helper.rb.\n\nconfig\n  Configuration files for the Rails environment, the routing map, the database, and other dependencies.\n\ncomponents\n  Self-contained mini-applications that can bundle together controllers, models, and views.\n\nlib\n  Application specific libraries. Basically, any kind of custom code that doesn't\n  belong under controllers, models, or helpers. This directory is in the load path.\n    \npublic\n  The directory available for the web server. Contains subdirectories for images, stylesheets,\n  and javascripts. Also contains the dispatchers and the default HTML files.\n\nscript\n  Helper scripts for automation and generation.\n\ntest\n  Unit and functional tests along with fixtures.\n\nvendor\n  External libraries that the application depends on. Also includes the plugins subdirectory.\n  This directory is in the load path.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fforeverrememberme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Fforeverrememberme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fforeverrememberme/lists"}