{"id":18049689,"url":"https://github.com/iacobson/attend-activities-rails","last_synced_at":"2025-04-05T06:15:26.406Z","repository":{"id":24462052,"uuid":"27865205","full_name":"iacobson/Attend-Activities-Rails","owner":"iacobson","description":"test app in rails to attend activities created by users","archived":false,"fork":false,"pushed_at":"2014-12-11T21:12:49.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T02:36:53.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/iacobson.png","metadata":{"files":{"readme":"README.md","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":"2014-12-11T10:08:15.000Z","updated_at":"2014-12-11T21:12:50.000Z","dependencies_parsed_at":"2022-08-22T08:20:39.591Z","dependency_job_id":null,"html_url":"https://github.com/iacobson/Attend-Activities-Rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iacobson%2FAttend-Activities-Rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iacobson%2FAttend-Activities-Rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iacobson%2FAttend-Activities-Rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iacobson%2FAttend-Activities-Rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iacobson","download_url":"https://codeload.github.com/iacobson/Attend-Activities-Rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294567,"owners_count":20915341,"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-10-30T21:08:29.810Z","updated_at":"2025-04-05T06:15:26.376Z","avatar_url":"https://github.com/iacobson.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Attend-Activities-Rails\n=======================\n\ntest app in rails to attend activities created by users\n\nApplication Steps:\n\n1. Install default DEVISE gem commands \n\n2. Create scaffold for Activity, with reference to User, to create user_id fiesd in activity\n\t$ rails generate scaffold Activity description:text user:references\n\t- update the User model: has_many :activities\n\n3. $ rake db:migrate\n\n4. Add name field to User\n\ta. generate migrateion\n\t\t$ rails generate migration add_username_to_User username:text\n\t\t$ rake db:migrate\n\tb. adding Username the field in the view files\n\t\t- registrations/new.html.erb\n\t\t- registrations/edit.html.erb\n\tc. customize the strong parameters for the devise controller action to add Username\n\t\t- follow instructions here: http://www.jacopretorius.net/2014/03/adding-custom-fields-to-your-devise-user-model-in-rails-4.html\n\t\t\t- simply create a new controller file: registrations_controller.rb\n\t\t\t- inside customize the code provided in the above tutorial\n\t\t\t- configure routes.rb to read the registrations controller \n\nNow the DEVISE is working with new field USERNAME\n\n\n__________________\n\nDatabase table relations:\n\nUsers - Activities\n\t- one to many\n\nActivities - Joining - Attendees\n\t- many to many through Joining\n\t\t$ rails generate scaffold Attendee user_id:integer\n\t\t$ rails generate model Joining activity:references attendee:references\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiacobson%2Fattend-activities-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiacobson%2Fattend-activities-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiacobson%2Fattend-activities-rails/lists"}