This file contains hidden or 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
| NameError in LampsController#index | |
| uninitialized constant Lamp::Constituents | |
| Extracted source (around line #158): | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 |
This file contains hidden or 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
| class LampsController < ApplicationController | |
| before_action :set_lamp, only: [:show, :edit, :update, :destroy] | |
| def edit | |
| @lamps = Lamp.all | |
| end | |
| private | |
| def set_lamp | |
| @lamp = Lamp.friendly.find(params[:id]) |
This file contains hidden or 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
| class Question < ActiveRecord::Base | |
| has_many :answers | |
| end | |
| class Answer < ActiveRecord::Base | |
| belongs_to :user | |
| belongs_to :question | |
| end | |
| class User < ActiveRecord::Base |
This file contains hidden or 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
| <header> | |
| <div class="logo" > | |
| <a itemprop="url" href="http://ledyair.com" href="/"><img itemprop="logo" src="<%= asset_path("vineLogo.png") %>" alt="LEDYair logo" /></a> | |
| </div> | |
| <nav> | |
| <div id="nav-xs"> | |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-lg" aria-expanded="false" aria-controls="navbar"> |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Socket.IO chat</title> | |
| <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> | |
| <style> | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { font: 13px Helvetica, Arial; } | |
| form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; } | |
| form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; } |
This file contains hidden or 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
| class Phone < ActiveRecord::Base | |
| belongs_to :user | |
| end |
This file contains hidden or 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
| class UsersController < ApplicationController | |
| def create | |
| @user = User.new(user_params) | |
| respond_to do |format| | |
| if @user.save | |
| format.html { redirect_to @user, notice: 'User was successfully created.' } | |
| format.json { render :show, status: :created, location: @user } | |
| else | |
| format.html { render :new } |
This file contains hidden or 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
| # This file should contain all the record creation needed to seed the database with its default values. | |
| # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). | |
| # | |
| # Examples: | |
| # | |
| # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) | |
| # Mayor.create(name: 'Emanuel', city: cities.first) | |
| require 'roo' | |
| def fetch_excel_data |
This file contains hidden or 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
| <!DOCTYPE html > | |
| <html lang="en" | |
| ng-app="minmax" > | |
| <head > | |
| <title >Controllers</title > | |
| <link href="../libs/bootstrap/bootstrap.min.css" | |
| rel="stylesheet" > | |
| <link href="main.css" | |
| rel="stylesheet" > | |
| </head > |
This file contains hidden or 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
| So I have no code, because i have no idea how to do this... | |
| I am looking for a link to start reading... | |
| Taking this sample row: | |
| original: | |
| --bRP68Ey4M,Natalie Imbruglia Torn,16,0,USD,"Torn,,Torn,","GB1109700440,,GBARL0400487,",,",emipub|UMPG,,emipub|UMPG","Natalie Imbruglia,,Various," | |
| desired output: | |
| =--bRP68Ey4M,Natalie Imbruglia Torn,16,0,USD,Torn,GB1109700440,,,Natalie Imbruglia | |
| =--bRP68Ey4M,Natalie Imbruglia Torn,16,0,USD,,,,emipub|UMPG, | |
| =--bRP68Ey4M,Natalie Imbruglia Torn,16,0,USD,Torn,GBARL0400487,,,Various |