i'm a little noob in ruby..

i want to pass id of object that i just created to view that it will get render via render method

this is my code below

```
respond_to do |format|
  if @object.save
    format.html { render "finished_reg",param: @object.id ,notice: 'object was successfully created.' }

  #end

```

in the view 

```
<%= link_to 'Here' ,"/controller/#{:param}" %>

```

but nothing happen.. how to make that and how can i print this on the view?