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
#signup | |
+column(12) | |
form | |
label | |
+column(4) | |
input | |
+column(4, true) | |
&[type=submit] | |
+column(4, true) |
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
$ env | grep PATH | |
PATH=/usr/local/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | |
$ sudo env | grep PATH | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin |
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
named_scope :by_keyword do |keyword| | |
keywords = keyword.downcase.split | |
query = "lower(profiles.job_title) like ? OR lower(resumes.body) like ? OR lower(career_level) like ? OR profiles.work_experience like ? OR profiles.degree_level like ? OR profiles.military_service like ? OR profiles.military_security like ? OR firstname like ? OR lastname like ? OR locations.city like ? OR locations.state like ? OR locations.zipcode like ? OR summary like ?" | |
parameters = 13 | |
conditions = [ ([ query ] * keywords.size).join(" OR ") ] | |
keywords.inject(conditions) do |conditions, keyword| | |
conditions += [ keyword ] * parameters | |
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
'/^(?:(?:(?<!^):)?[0-9A-Fa-f]{2}){6}$/' |
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
class ActionView::TestCase | |
class TestController < ActionController::Base | |
attr_accessor :params | |
# Save the current initialize method to call in the new initialize method below. | |
alias_method :base_initialize, :initialize | |
def initialize | |
base_initialize | |
NewerOlder