Wednesday, December 4, 2013

Day 59

Finally started to use the rails server to make some stuff. Here is just one of the rails practice exercises we had to do.


So, when you first load the page and want to see all of the posts you have made, you go directly to the "Listing Posts" page on the rails server. This is called posts in the views folder as well. So to get to the page, it would look something like, http://localhost:3000/posts. If you decide you want to make a new post, you click "new post" and it will take you to the "New Post" page (http://localhost:3000/posts/new). You can also "Show" which means you just display that post by itself. You are able to also edit and delete any of the posts if you want. All of this magic is done by code in the files, which are connected through the Rails server.











Don't worry about the spelling and stuff above. This was just practice.

Still a little unsure on this Rails "magic" and how it works.

- K


No comments:

Post a Comment