DEV Community

Discussion on: 5 reasons you should learn Lua

Collapse
 
jwoertink profile image
Jeremy Woertink

When you say ERB, do you mean in ruby? I'm not sure what INK is... but you can start here to learn Lua tylerneylon.com/a/learn-lua/

Collapse
 
joshuawoodsdev profile image
JoshuaWoods

Yes, I started learning Rails and Middleman but then I hit a wall. I was like whats ERB? I got it but not I have to learn just how the layouts work? Like how to I make a picture go into the place I want it to go with <%yeild%> I have not found a place that explained how outside of the super basic layouts. And INK is cool inklestudios.com/ink/ thanks so much for your response.

Thread Thread
 
jwoertink profile image
Jeremy Woertink

Not really the place for these, but ERB is just HTML where you can use ruby code to extend, and dynamically generate HTML. If you don't know HTML that well, then you should start there. Placing an image is as easy as just using <img src="" > where you want it. The only difference being that your src attribute has to be dynamic based on the asset pipeline or however you serve up your images. Rails also gives you the image_tag helper method to make it more ruby-like.

That ink looks cool.

Thread Thread
 
joshuawoodsdev profile image
JoshuaWoods

Lau looks like a really good language, I interested in starting to learn it it seems that you you can do alot with it