That was the advice of the day. lol.
The next one that I would like to talk about is about Rails that I learn today. Its easy to guess, the thing that I learn is almost as easy as pie thing for some people.. haaha..
Let me make the Ordered List for what I've done today.
- Learning how to linking some letter to another page. Its a common thing if we use <a> </a> anchore right?. In rails, we use a method that we called link_to. The standar signatur that we can use is link_to body, url (i.e. link_to "Home", page_home_path). Its awesome of course, but there is something more awesome than that, and that method is, link_to_unless_current body url. The method is to make the link only if the URI is not the same as url that we passed to the parameter.
- How to make a Controller. Its easy, make a command on cmd prompt using generate. rails generate controller name_of_controller name_of_action name_of_action . . . This command will automatically make some files that we can use to develop our program
- Helpers. I still don't really get it, but it won't take a long time to know the whole thing about helpers. The first thing that I know is Helpers is some kind of thing that can help Controller to make some action as module on a controller.
- The best source of method on Rails is off course Api Rails Site
Okay then, that was the only thing that I can grasp today. hope that tomorrow will be better.. :D
the Last thing that I wanna share today is some random photos that I get from the net..
here it is..
the Last thing that I wanna share today is some random photos that I get from the net..
here it is..
It's cute, I hope that it fall. lol
No comments:
Post a Comment