Syntax error, unexpected keyword_end, expecting ')' end
By : user2107925
Date : March 29 2020, 07:55 AM
it fixes the issue I think I see your syntax error on this line: <%= number_to_currency(@pacs_money + " from " + @pacs + " PACs" %> There's no closing parenthesis for number_to_currency. It should be:
|
syntax error, unexpected '{', expecting keyword_end
By : user3342516
Date : March 29 2020, 07:55 AM
Hope this helps Every place you've used something: true { ... } is a syntax error. You cannot put a true there. code :
validates :name, ..., presence: true { message: "All fields are required. Please try again." }
validates :name, ..., presence: { message: "All fields are required. Please try again." }
|
syntax error, unexpected '}', expecting keyword_end }
By : IgnasZ
Date : March 29 2020, 07:55 AM
I hope this helps you . There's some slightly unsual syntax in play here, with a single colon (:) at the end of the new call. E.g. code :
chrome = Watir::Browser.new:chrome
hash = {foo: 'bar'}
browser_conf = {
"chrome" => (Watir::Browser.new:chrome),
"firefox" => (Watir::Browser.new:firefox),
"ie" => (Watir::Browser.new:ie)
}
browser_conf = {
"chrome" => Watir::Browser.new(:chrome),
"firefox" => Watir::Browser.new(:firefox),
"ie" => Watir::Browser.new(:ie)
}
|
syntax error, unexpected $end, expecting keyword_end
By : learner learn
Date : March 29 2020, 07:55 AM
Hope that helps This also can happen if you have a stray . trailing a method, so check for those as well.
|
syntax error, unexpected keyword_end, expecting '}'
By : Andres D'Elia
Date : March 29 2020, 07:55 AM
Hope that helps In this method you have opened one curly bracket '{' but not closed it.
|