You can't pass local variables from a controller to a view. What you could do is define it as an instance variable and then it would automatically be available in the view.
@resource = @book
If you want to pass entirely different objects, then just define those instance variables differently.