makandra Curriculum

...the index. Why is that so? What can you use instead? Add a custom route /movies/search to your routes, and map it to a new #search action in MoviesController

makandra Curriculum

...take a close look at Rails components that are not easily instantiated, such as routes, views or controller actions. Go through the rspec-rails docs and get an overview what...

...has_many :through Gain an understanding of the structure of a basic Rails app Routes Controllers Generate a controller using Rails scaffolding Write your own controller Views using ERB

...HTTPS. However, HTTPS also has some limitations. Exercise Assume an attacker takes over the router box on your local network. The attacker can see and change any network communication between...

...with the model should be easy for controllers and views Interacting with helpers and routes should be easy for views Avoid long instruction manuals: If you need to write down...

...a very readable manner. For example, Rails offers a compact DSL to define new routes. A big drawback however is that your code often becomes much harder to read. Another...

Best results in other decks

...the correct protocol. Caveats: You need to harden your server setup to forbid the routing of a request with the HOST header to an application server, that serves requests under...

TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module. scope module: 'module', path: 'url_prefix', as: 'path_helper_name' do...

...work with resources as well, e.g. resources :examples, path: 'demonstration' Two macros for namespacing routes Rails offers two macros for namespacing routes. As its name suggests, namespace is the tool...

Search in all decks