# Define legacy table information
# self.table_name = "tblDoctor"
# self.primary_key = "DoctorID"
# alias_attribute :first_name, :DoctorFName
# alias_attribute :last_name, :DoctorLName
# alias_attribute :middle_name, :DoctorMName
# alias_attribute :suffix, :DoctorSuffix
# alias_attribute :title, :DoctorPrefix
# alias_attribute :hospital_id, :HospitalID
# alias_attribute :address1, :DoctorAddress1
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
| # Based on | |
| # http://guides.rubyonrails.org/active_record_querying.html#eager-loading-multiple-associations | |
| # This works | |
| Post.includes(:category, :comments => [:user]) | |
| # This does not work | |
| Post.includes(:comments => [:user], :category) |
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
| { | |
| "color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
| "fade_fold_buttons": false, | |
| "font_face": "Ubuntu Mono", | |
| "font_size": 18, | |
| "highlight_modified_tabs": true, | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true, | |
| "trimTrailingWhiteSpaceOnSave": true | |
| } |
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
| <cfcomponent extends="Controller" output="false"> | |
| <cffunction name = "init"> | |
| <cfset Super.init() /> | |
| </cffunction> | |
| <cffunction name = "remotesearch"> | |
| <cfsetting showdebugoutput="false"> | |
| <cfset provides("json")> | |
| <cfif IsDefined("params.term") and Len(Trim(params.term)) GT 0> |
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
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| actionmailer (3.2.8) | |
| actionpack (= 3.2.8) | |
| mail (~> 2.4.4) | |
| actionpack (3.2.8) | |
| activemodel (= 3.2.8) | |
| activesupport (= 3.2.8) | |
| builder (~> 3.0.0) |
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
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.8' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| group :development do | |
| gem 'sqlite3' | |
| 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
| diff --git a/js/app.js b/js/app.js | |
| index ff617b3..f6ffa0b 100644 | |
| --- a/js/app.js | |
| +++ b/js/app.js | |
| @@ -32,7 +32,7 @@ App.tweetsController = Em.ArrayController.create({ | |
| var me = this; | |
| var username = me.get("username"); | |
| if ( username ) { | |
| - var url = 'http://api.twitter.com/1/statuses/user_timeline.json' | |
| + var url = 'http://api.twitter.com/1/statuses/user_timeline.json'; |
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
| <cfcomponent extends="Wheels"> | |
| <cffunction name="init"> | |
| <cfset filters(through="checkLogin", except="login,authenticate,logout,resetPassword,forgotPassword")> | |
| </cffunction> | |
| <cffunction name="checkLogin"> | |
| <cfif StructKeyExists(session, "user")> | |
| <cfset loggedInUser = model("user").findByKey(session.user.id) /> | |
| <cfif isDefined("session.gotoredirectparams")> | |
| <!--- make params what the previous ones before timeout ---> |
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
| user.log.create(:description => 'viewed report #{@report.test.accession}') |
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
| <% if @user.errors.any? %> | |
| <div id="error_explanation"> | |
| <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> | |
| <ul> | |
| <% @user.errors.full_messages.each do |msg| %> | |
| <li><%= msg %></li> | |
| <% end %> | |
| </ul> | |
| </div> |