README.md in nephos-server-0.2.2 vs README.md in nephos-server-0.2.3
- old
+ new
@@ -39,10 +39,14 @@
The basic code of a controller can be generated via ``nephos-generator controller NAME``.
```ruby
class Example < Nephos::Controller
def root
- return {plain: "index"}
+ if params["index"] == "true"
+ return {plain: "index"}
+ else
+ return :empty
+ end
end
end
```
### Rendering