This file contains 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
.product | |
- link = featured_downloads_modal_path(download.id) | |
- link = modal_path(download.id) if current_user | |
%a{ :href=>link, :data=>{ :remote=>'true' } } | |
%img{ :src => download.get_preview_image }/ | |
%h4= download.name | |
%p= download.description.truncate(120) | |
%input{:type => "hidden", :value => download.id, :name => "download_id" }/ | |
%input{:type => "submit", :value => "Download", :data => {:remote => true, disable_with: "Please wait..." }, class: 'btn-line' }/ | |
- if @url |
This file contains 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
var Hearts = React.createClass({ | |
getInitialState(){ | |
return { cards: [] } | |
}, | |
getCards(){ | |
this.setState({ | |
cards: [ | |
{ | |
four: <div className="outline shadow rounded red" onClick={this.flipCard}> |
This file contains 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
<%= form_for(current_user.active_relationships.build, remote: true) do |f| %> | |
<div><%= hidden_field_tag :followed_id, user.id %></div> | |
<%= f.submit 'Follow', class: 'btn btn-primary'%> | |
<% end %> |
This file contains 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
require_relative 'fish_menu' | |
class Customer | |
attr_accessor :name, :money | |
include Menu | |
def inialize(args) | |
@name = args[:name] |