Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok. You asked a lot of questions in one. It will be hard to explain all ruby and rails magic in one answer but I'll try to give you some useful resources where you can find some answers. <br/><br/>1) About require statements. If you are new to ruby and rails it will be hard to understand how rails application is initialized. Here is a tutorial were you can some useful information: <br/> <a href="http://guides.rubyonrails.org/initialization.html" rel="nofollow noreferrer">http://guides.rubyonrails.org/initialization.html</a> <br/> If you need more information about particular method you can always look into documentation. For example redirect_to method info: <br/> <a href="http://apidock.com/rails/ActionController/Base/redirect_to" rel="nofollow noreferrer">http://apidock.com/rails/ActionController/Base/redirect_to</a> <br/> <br/> 2) About "Using methods that don't exist". This is one of the most beautiful feature of ruby language called metaprogramming. This is also advanced topic. Here are some useful resources: <br /> <a href="http://rads.stackoverflow.com/amzn/click/1934356476" rel="nofollow noreferrer">http://www.amazon.com/Metaprogramming-Ruby-Program-Like-Pros/dp/1934356476</a> <br/> <a href="https://stackoverflow.com/questions/788689/ruby-metaprogramming-online-tutorial">Ruby metaprogramming online tutorial</a> <br/> <a href="http://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-about-the-self/" rel="nofollow noreferrer">http://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-about-the-self/</a> <br/> <a href="http://rubylearning.com/blog/2010/11/23/dont-know-metaprogramming-in-ruby/" rel="nofollow noreferrer">http://rubylearning.com/blog/2010/11/23/dont-know-metaprogramming-in-ruby/</a> <br/></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload