wycats/stalkr
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Step 1: Generate a new merb application Step 2: Run 'thor merb:gem:install' to bundle the stack gems Step 3: Generate a resource using "merb-gen resource article 'title:string, body:text'" Step 4: Added timestamps to Article <timestamps :at> Step 5: Automigrate the database "rake db:automigrate" Step 6: Add dm-sweatshop to dependencies.rb and run 'thor merb:gem:install' Step 7: Generate some bootstrap articles using dm-sweatshop (run "rake bootstrap" afterward) Step 8: Modify articles/index.html to list the generated articles Step 9: Modify config/router.rb to point "/" to Articles#index Step 10: Create a link to the article resource from articles/index.html Step 11: Modify articles/show.html to show a single article, and add a "Back" link back to the index Step 12: Modify articles/new.html to allow creation of a new article NOTE: If we create a new article smaller than 150 characters, the "... more link does not display", so... Step 13: Add a new helper to global_helpers.rb to handle more cases Step 14: Add the message[:notice] to the layout, to display "Article was successfully created" Step 15: Add delete link and delete confirmation Step 16: Modify articles/edit.html to allow editing of existing article Step 17: Reorganize articles spec into separate files (it's getting too big!) Step 18: Add validations to the article model, and test them NOTE: The String column for :title automatically validates at 50 characters Step 19: Inform the user why their creation or update failed validations Step 20: Generate the comments model using "merb-gen resource article 'body:text, author:string'" Step 21: Modify the router to nest comments under articles Step 22: Remove the default generated specs (they are not useful for nested resources) Step 23: Set up timestamps and relationships for articles and comments Step 24: Add list of comments to article page Step 25: Add a 'New' link to the index page so you can create new posts Step 26: Add Haml to the merb app and convert the views (except the partial) to Haml NOTE: Run 'thor merb:gem:install' after modifying dependencies.rb to get the new gems Step 27: Make the 'delete' button Ajaxified Step 28: Get MySQL dump from old blog and import into a new local MySQL DB NOTE: Use: CREATE DATABASE `legacy-blog` CHARACTER SET utf8 COLLATE utf8_general_ci; mysql5 -u root legacy-blog < legacy-blog.sql Step 29: Add do_mysql to dependencies.rb and run 'thor merb:gem:install' Step 30: Write mapping for legacy database for articles NOTE: You can now use bin/merb -i to manipulate the old articles Step 31: Write mapping for legacy database for comments Step 32: Switched data migration models to use :legacy database Step 33: Copy legacy data to new database Step 34: Profile app and make some small changes to improve speed Step 35: Add authentication Step 36: Add support for commenters adding their twitter name NOTE: Run rake db:migrate to get the data into the DB Step 37: Add support for Markdown to the comment field using a DM custom type
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published