I am trying to pass a variable to render like this:

```
def monitor
  @peripheries = Periphery.where('periphery_type_name=?','monitor')
  render 'index', type: 'Monitor'
end

```

Here i want to use 'type' variable inside index view which looks like that:

```
<%= render 'some_partial', periphery_type: type %>

```

which also render something. But i want to use that 'type' variable