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 'spec_helper' | |
describe InboundController do | |
describe "reply from support team" do | |
context "upon creating successful reply " do | |
before do | |
@ticket = Ticket.create(sender: "[email protected]", subject: "my phone freezes all the time", body: "my phone freezes after hanging up", status: "new") | |
post :create, { | |
headers: { | |
'To'=> "ticket+#{@ticket.id}@laantern.com", |
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
#ROUTES | |
match 'contactar/:id' => 'productos#contactar', :as => 'contactar', :via => :get | |
match 'contactar' => 'productos#crearcontacto', :as => 'contactar', :via => :post | |
#CONTROLLER | |
def contactar | |
# @producto = Producto.find(params[:id]) | |
@contacto = Contacto.new(:ide => params[:id]) | |
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
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
# Add these gems | |
gem 'compass-rails', '~> 1.0.3' | |
gem 'zurb-foundation', '~> 3.1' | |
end |