Home > Syntax Error > Ruby Unexpected Keyword_end Expecting End-of-input

Ruby Unexpected Keyword_end Expecting End-of-input

Contents

Move the second end at the end of rps_game_winner to the last intended line of the rps_result method. comments powered by Disqus Get notified about new tutorials Receive New Tutorials No I don't want free resources from expert developers. How to explain the concept of test automation to a team that only knows manual testing? guess I was just tired :) Posting to the forum is only allowed for members with active accounts. http://lebloggeek.com/syntax-error/syntax-error-unexpected-end-of-input-expecting-keyword-end-ruby.html

Share this Related Tips Suppress delimiters in Ruby's String#split Simone Carletti Using #find_each over #each in Rails 4 R.J. Fantasy Story about Phantom Tollbooth/Where the Wild Things Are kids as Adults What to do with my pre-teen daughter who has been out of control since a severe accident? Browse other questions tagged ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4 or ask your own question. Jokes about Monica's haircut Does store bought barbecue sauce need to be heated/cooked before consumption?

Ruby Unexpected Keyword_end Expecting End-of-input

syntax error, unexpected keyword_end, expecting end-of-input (Mac)0rspec: syntax error, unexpected keyword_end, expecting end-of-input (SyntaxError)1SyntaxError unexpected keyword_ensure, expecting keyword_end0syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)-4syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError) Address_book Magento 2 how to get all cms pages in system configuration Is it safe for a CR2032 coin cell to be in an oven? P.s. Is there a standard English translation of ausserordentlicher Professor?

Found out, it was due to my editor changing the quotes " 'smartly' in the mac editor. class Speech def initialize print "What is the speech name? " @title = gets.chomp @lines = [] while add_line puts "Line added." end end def title @title end def add_line puts Any idea why i'm getting a syntax error? –HandDisco Sep 10 '13 at 14:29 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up Syntax Error, Unexpected Keyword_ensure, Expecting Keyword_end more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

About a man and a bee more hot questions question feed lang-rb about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Vagrant Syntax Error, Unexpected End-of-input, Expecting Keyword_end Too many "end" perhaps in 2 different files? Not the answer you're looking for? Where's the missing 'end' ? –HandDisco Sep 10 '13 at 14:18 add a comment| 2 Answers 2 active oldest votes up vote 11 down vote accepted It seems that you have

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Unexpected Keyword_ensure, Expecting End-of-input what does one mean by numerical integration is too expensive? Oracle: Does enabling a PK rebuild its index? When to use "ĉu" instead of "se"?

Vagrant Syntax Error, Unexpected End-of-input, Expecting Keyword_end

Save a JPG without a background Can I use my client's GPL software? What's weird is if I run: ruby -c controllers/posts_controller.rb I get back Syntax OK... Ruby Unexpected Keyword_end Expecting End-of-input Do I need to turn off camera before switching auto-focus on/off? Syntax Error, Unexpected '{', Expecting $end current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

What's the point of Pauli's Exclusion Principle if time and space are continuous? weblink but where is this extra "end". It's actually supposed to say Post.all - And yes, that's the whole file. Our Company About Us Contact Us Community Treehouse Stories Student Perks Treehouse Blog Affiliate Program Careers Topics HTML CSS Design JavaScript Ruby PHP WordPress iOS Android Development Tools Business Tracks Web Vagrant Unexpected End-of-input, Expecting Keyword_end

Does store bought barbecue sauce need to be heated/cooked before consumption? Are there any historically significant examples? Related 4syntax error, unexpected $end, expecting keyword_end2ruby syntax error, unexpected $end, expecting keyword_end0Syntax error in ruby script (unexpected keyword_end and unexpected $end)0rspec: syntax error, unexpected keyword_end, expecting end-of-input (SyntaxError)-1Ruby syntax error: navigate here Does store bought barbecue sauce need to be heated/cooked before consumption?

describe "when name is too long" do before { @user.name = "a" * 51 } it { should_not be_valid } end end share|improve this answer answered Sep 10 '13 at 14:22 Ruby Syntax Checker more hot questions question feed lang-rb about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation How to translate "used to"?

How many spells can a cleric learn?

Who named Pan's character? Syntax error "syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)" require 'spec_helper' user_spec.rb describe User do before do @user = User.new(name: "Example User", email: "[email protected]", password: "foobar", password_confirmation: "foobar") end subject { Does the Many Worlds interpretation of quantum mechanics necessarily imply every world exist? Ruby End What kind of bugs do "goto" statements lead to?

about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault At first it caused no issues whatsoever, which is why it was so hard for me to find the problem. That said, glad this problem is behind you so you can continue learning Rails! http://lebloggeek.com/syntax-error/syntax-error-unexpected-keyword-ensure-expecting-keyword-end-haml.html Save a JPG without a background If the square root of two is irrational, why can it be created by dividing two numbers?

I'm not sure exactly what's causing this to occur.. describe "Editing todo lists" do it "updates a todo list successfully with correct information" do todo_list = TodoList.create(title: "Groceries", description: "Grocery list.") visit "/todo_lists" within "#todo_list_#{todo_list.id}" do click_link "Edit" end fill_in So you should end it. How to explain the use of high-tech bows instead of guns If the square root of two is irrational, why can it be created by dividing two numbers?