← Back to Upcase

Advantages of High Voltage over built-in Rails static-page handling

(Patrick) #1

It’s not clear to me why we’re using High Voltage. Rails can handle static pages with the following syntax:

get ':action' => 'static#:action'

It looks as though High Voltage has some extra features, such as caching (Rails has caching too, but I haven’t used it so maybe there’s a difference). But we haven’t used them (yet).

0 Likes

(Charlieanna) #2

I think this avoids creating a new controller.

0 Likes

(Patrick) #3

You’re right; the above code requires a controller (StaticController), though it doesn’t need any methods. To me, it just seems a bit excessive to include a gem just to avoid creating an empty controller.

0 Likes

(Charlieanna) #4

You can ask in the office hrs which start in an hour from now.

0 Likes