Rails 3.2.8
self.primary_key = 'memberid' is not being honored
I've narrowed it down to not being an issue with factory girl but I didn't want to change the code too much before posting it.
class Member < ActiveRecord::Base
Rails 3.2.8
self.primary_key = 'memberid' is not being honored
I've narrowed it down to not being an issue with factory girl but I didn't want to change the code too much before posting it.
class Member < ActiveRecord::Base
{ | |
"apiVersion":"0.1", | |
"swaggerVersion":"2.0", | |
"resourcePath":"/splines", | |
"produces":["application/json"], | |
"apis": [ | |
{ | |
"path":"/splines/foo.{format}", | |
"operations":[ | |
{ |
class Event | |
include Mongoid::Document | |
field :name, type: String | |
field :status, type: String, default: 'inactive' | |
field :presenter, type: String | |
field :moderators, type: Array, default: [] | |
field :queued_question_ids, type: Array, default: [] | |
embeds_many :questions | |
embeds_many :categories |
Started by user anonymous | |
[EnvInject] - Loading node environment variables. | |
Building in workspace /Users/dev1/.jenkins/workspace/AssetsWeb-Step2-QA-Deploy | |
Checkout:AssetsWeb-Step2-QA-Deploy / /Users/dev1/.jenkins/workspace/AssetsWeb-Step2-QA-Deploy - hudson.remoting.LocalChannel@10f67a01 | |
Using strategy: Default | |
Last Built Revision: Revision 942ea686ef30fd2dac68a51cc6b84d5a4a2bd9c3 (origin/QA) | |
Fetching changes from 1 remote Git repository | |
Fetching upstream changes from git@github.com:ionicmobile/webapp_assets.git | |
Commencing build of Revision 942ea686ef30fd2dac68a51cc6b84d5a4a2bd9c3 (origin/QA) | |
Checking out Revision 942ea686ef30fd2dac68a51cc6b84d5a4a2bd9c3 (origin/QA) |
class IsEventsArray < Grape::Validations::Validator | |
def validate_param!(attr_name, params) | |
params[attr_name].each do |event_string| | |
validate_event(JSON.parse(event_string)) | |
end | |
rescue JSON::ParserError | |
throw :error, :status => 400, :message => "Cannot parse param '#{attr_name}' to JSON. Please check the syntax." | |
end | |
def validate_event(event) |
#config/initializers/mime_types.rb | |
Mime::Type.register_alias "text/html", :mobile | |
class ChangeEmailController < ApplicationController | |
respond_to :html, :mobile | |
expose(:email_updater) | |
def new | |
end |
module News | |
module ApplicationHelper | |
def engine_rooter | |
News::Engine.routes._generate_prefix({}) | |
end | |
end | |
end | |
haml file | |
- ArticleImage.all.each do |image| |
dev1@em-d3:~$ rvm install 1.9.3 --with-zlib-lib-dir=/home/dev1/.rvm/usr --without-tk --without-tcl --without-tcltk | |
Installing Ruby from source to: /home/dev1/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-p125 - #fetching | |
ruby-1.9.3-p125 - #extracted to /home/dev1/.rvm/src/ruby-1.9.3-p125 (already extracted) | |
ruby-1.9.3-p125 - #configuring | |
ruby-1.9.3-p125 - #compiling | |
Error running 'make ', please read /home/dev1/.rvm/log/ruby-1.9.3-p125/make.log | |
There has been an error while running make. Halting the installation. |
Can't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk. | |
compiling tk/tkutil | |
compiling win32ole | |
compiling zlib | |
/home/dev1/.rvm/src/ruby-1.9.2-p290/lib/mkmf.rb:1358:in `dir_config': undefined method `split' for true:TrueClass (NoMethodError) | |
from /home/dev1/.rvm/src/ruby-1.9.2-p290/ext/zlib/extconf.rb:10:in `<top (required)>' | |
from ./ext/extmk.rb:156:in `load' | |
from ./ext/extmk.rb:156:in `extmake' | |
from ./ext/extmk.rb:445:in `block in <main>' | |
from ./ext/extmk.rb:441:in `each' |
%w(schools hospitals).each do |s| | |
resources :organization_types, :path => s, :as => s, :defaults => { :type => s }, :only => :index | |
resources :organizations, :path => s, :as => s, :defaults => { :type => s }, :only => :show | |
end |