Jay Pangmi wrote:
you specific problem here is -
...
> rescue
> redirect_to_booking("Invalid input.")
> end
You render here
> if camp_loc.blank? || nights.blank? || parents.blank?
> redirect_to_booking("Fields with '*' are required fields.")
> elsif (nights.to_i > 2) || ((parents.to_i + children.to_i) > 8)
> redirect_to_booking("Limitation: Maximum stay of 2 nights with group
> of maximum 8 people.")
> elsif children.nil? and family_rate_claim == "1"
> redirect_to_booking("You are not eligible for claiming family
And also here
Do .
return( redirect_to_booking("Invalid input.") )
So your code doesn't fall through.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---