# [Ruby] [Rails] Regarding the presence or absence of parentheses as an argument of the render method

Do you put parentheses in the argument of #render method? Don’t you wear it?

In conclusion, both are OK. Parentheses can be omitted when calling a method in Ruby.

So there is no problem with either of the following two methods.

#### `posts_controller.rb`

``````
render("posts/new")
``````

#### `posts_controller.rb`

``````
render "posts/new"
``````

Tags:

Updated: