gem 'fie', '~> 0.3.0' $ bundle install <%= render template: 'layouts/fie' %> //= require fie
redis: &redis adapter: redis url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> channel_prefix: fie_example_app_production development: *redis test: *redis production: *redis
class GuideCommander < Fie::Commander
def my_method1(argument1:)
puts argument1
end
def my_method2(argument1: 'default', argument2:)
puts "This is an optional argument: #{ argument1 }"
puts "This is a required argument: #{ argument2 }"
end
end
<% parameters = {
string: 'string',
integer: 123
}.to_json %>
<a fie-click="my_method" fie-parameters="<%= parameters %>">klik mij</a>
Fie::Pools.publish(:notifications, 'New message arrived.') Fie::Pools.publish_lazy(:notifications, 'New message arrived.', '1b733ccc-8bfd-49e4-bfc3-6ceed876acf0')
<%= render partial: 'guide/commander', locals: { message: 'hoi' }, cached: true %>