Created
May 20, 2015 16:26
-
-
Save jasonleonhard/f4c05ab712388c878bc0 to your computer and use it in GitHub Desktop.
rails whitespace syntax error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this one will not work, it creates a syntax error | |
class ArticlesController < ApplicationController | |
def new | |
end | |
def create | |
render plain: params[:article].inspect | |
end | |
end | |
but this does work... | |
class ArticlesController < ApplicationController | |
def new | |
end | |
def create | |
render plain: params[:article].inspect | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<%- and -%> suppress leading and trailing whitespace
Is this required to not receive the unicode characters?