I want to render action if my model is not valid.
render "book_page"
https://gist.github.com/f7259eb79d1f2c951036
But for now @prices_per_night and @number_of_nights are nil when i click submit button. How to prevent this?
I tried to move this form to partial but it now happend, because I cant render only partial. Or Am I wrong?
@prices_per_nightand@number_of_nightsare nil. How to Prevent this?" How is this relevant, are you trying to set those as global variables?