Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: Ruby

Ruby, a scripting language created for simple and fast object-oriented programming (object-oriented programming), was developed by Japanese Yukihiro Matsumoto in the 1990s and complies with the GPL agreement and Ruby License. Its inspiration and features come from Perl, Smalltalk, Eiffel, Ada, and Lisp languages. The Ruby language itself has also developed Ruby language alternatives to other platforms such as JRuby (Java platform) and IronRuby (.NET platform). The author of Ruby started writing Ruby on February 24, 1993, and it was not officially released to the fj (news group) until December 1995. Because Perl is pronounced the same as the June birthstone pearl, Ruby is named after the July birthstone ruby.

Ruby-on-rails – How do I prohibit running code in the development environment on Rails?

How do I delete code when my Rails application is in development mode? For example, I want to delete my Google Analytics reference during development, but render it in a production environment.

October 6, 2021By Simo Ruby code, development environment, middle, Of Running, Prohibition, rails, rubyLeave a Comment

Ruby-on-rails – Why is Ary.each to dump all content of the object?

foo is an array of objects, and bar is an attribute of the object.

(rdb:1) foo .bar.map{|v| bar.v }
[“a”, “b”, “c”, “d”, “e”, “f”]
< br />(rdb:1) foo.bar.each{|v| p bar.v }
[massive outpourin

October 6, 2021By Simo Ruby all, Ary, Ary.each, Content, dump, meeting, object, rails, ruby, whyLeave a Comment

Ruby-on-rails – rails – Comment W ACTS_AS_NESTED_SET – Remove the destruction data when deleting related records

I have the following models:

class Group :destroy
class Thread :commentable, :dependent => :destroy
class Comment true
acts_as_nested_set The problem I have is that when the user deletes

October 6, 2021By Simo Ruby ACTS, data, delete, nested, Record, Related, ruby, set, timeLeave a Comment

Ruby-on-rails – RSPEC can output a value that makes test failure?

I have this statement:

@obj[:attribute].eql?(“TestValue”).should be_true If not just tell me the test failed, it will tell me it failed, because @obj[:attribute] is zero or 1234 or what it is

October 6, 2021By Simo Ruby Failure, Output, rails, RSPEC, ruby, test, value, YesLeave a Comment

Ruby concurrent, process, thread, gil, eventmachine, celluloid

Regarding concurrency and parallelism, it happened not long ago. A group of colleagues went to Family Mart to buy lunch, and brought them back. The company only has one microwave oven for heating,

October 6, 2021By Simo Ruby celluloid, concurrent, eventmachine, gil, process, ruby, threadLeave a Comment

Ruby – Regular expression, look for strings that include but not starting with strings

I am parsing a text file, traversing each line, and I am having trouble finding regular expressions. Part of this parsing involves changes appearing, for example: & Eacute; and & eacute;

October 6, 2021By Simo Ruby expression, included, lookup, regular, ruby, Start, stringLeave a Comment

Ruby-on-rails – Error message in Ruby on Rails

I implemented the validates_presence_of field for the comments in the guide. How to display validation errors on the post page. I know the rendering, but with the rendering I need to send all the v

October 6, 2021By Simo Ruby Message, MOW, rails, rubyLeave a Comment

Ruby-on-rails – Use view part of the view

I have been using an oscilloscope to display some information to show the to-do items that have been completed and 24 hours a day

scope :completed, joins(:user).where(:todos => {:complete =>

October 6, 2021By Simo Ruby part, rails, Range, ruby, use, viewLeave a Comment

Ruby-on-rails – How to use Capistrano as a non-Rails application? Just a static HTML website

I have been using capistrano on the rails website, and set it up. I just did it as usual:

capify .< /pre> Now how do I use it to publish on a static html website?

I have been Use capist

October 6, 2021By Simo RubyLeave a Comment

Why is Ruby’s array.map () is also known as array.collect ()?

Whenever I see Ruby code saying:

arrayNames.collect {… } < p>I forgot what I collected, I have to find out what it is, and found that it is the same as map().

Map, I can understand, t

October 6, 2021By Simo Ruby array, Array.map, called Array.collect, collect, Map, ruby, whyLeave a Comment

Posts navigation

Page 1 … Page 7 Page 8 Page 9
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress