30 Jun '15, 2pm

Opal on Rails: Replacing CoffeeScript with client-side Ruby

Opal on Rails: Replacing CoffeeScript with client-side Ruby

class ColorsView def initialize(selector = 'body.controller-colors', parent = Element) @element = parent.find(selector) setup end attr_reader :element def setup # Put here the setup for the view behavior say_hello_when_a_link_is_clicked end def say_hello_when_a_link_is_clicked all_links.on :click do |event| # Use prevent_default to stop default behavior (as you would do in jQuery) # event.prevent_default puts "Hello! (You just clicked on a link: #{event.current_target.text})" end end private def all_links @all_links ||= element.find('a') end end

Full article: http://blog.elpassion.com/opal-on-rails-coffeescript-ruby/

Tweets

New Job Alert: Sr. Ruby on Rails Developer at F...

simplyhired.com 29 Jun '15, 11am

A rapidly growing company in Roswell is looking for a Sr. Ruby on Rails Developer to hire on a permanent basis. In this ro...

Simple website on Ruby on rails by Vipin85Gupta...

freelancer.com 01 Jul '15, 4am

Skills Required Ruby Ruby on Rails Project Budget $30 - $250 USD Total Bids 4 Project Description Amount usd 120 simple we...

Ведущий разработчик Ruby/Rails -

brainstorage.me 01 Jul '15, 6am

наш стек одной строкой: Ruby/Rails, MySQL, Elasticsearch, RabbitMQ, Redis, Sidekiq;

Today in #Ruby, #Rails, & #Python is out! Stori...

paper.li 01 Jul '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

Today in #Ruby, #Rails, & #Python is out! Stori...

paper.li 29 Jun '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

Today in #Ruby, #Rails, & #Python is out! Stori...

paper.li 28 Jun '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

New Job Alert: Ruby On Rails Developers - Start...

simplyhired.com 28 Jun '15, 5am

Join Sweeten , a fast growing award-winning tech company based in New York City. We are disrupting the home renovation spa...

Today in #Ruby, #Rails, & #Python is out! Stori...

paper.li 27 Jun '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

Разработчик Ruby on Rails -

brainstorage.me 25 Jun '15, 11am

·Обязательно Git, HTML5, CSS3, HAML, SLIM, SCSS/SASS, JavaScript/CoffeeScript, Jquery, PostgreSQL;

From Rails to Ember #ruby #rails #js #javascrip...

fromrailstoember.com 22 Jun '15, 10am

Tip #1 - Embrace Conventions Rails and Ember both are opinionated frameworks. These opinions are based around conventions ...

Today in #Ruby, #Rails, & #Python is out! Stori...

paper.li 25 Jun '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...