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.

First exploration: Ruby on rails

One. Installation Ruby installation: https://ruby-china.org/wiki/rvm-guide

Note: After installing RVM and Gem< /p> Install rails:
gem install rails -v 5.1.4 # specific version installation

October 6, 2021By Simo Ruby Explore, First, rails, rubyLeave a Comment

Ruby-on-rails – Dynamic `named_scope` depends on some standards

Dear, I have a student model, I have specified some name_scopes in it, such as from_program, from_year, from_school, has_status, from_course, etc…

Anyway, can I dynamically link different n

October 6, 2021By Simo Ruby Dynamics, Named, rails, ruby, Scope depends on, Some, StandardLeave a Comment

Ruby-on-rails – Virtual Ruby Development Environment

I mainly do ruby ​​on rails development on my machine, but sometimes I end up using other laptops for RoR development. If there is something (maybe the shell?) it will be fine, this Basically all t

October 6, 2021By Simo Ruby development environment, rails, ruby, VirtualLeave a Comment

Ruby-on-rails – Start the Rails server with absolute path

I am trying to make a script to run my Rails development server, but the absolute path does not want to work.

This is what I have;

/home/me/dev/app/script/rails server>> /var/log/rails.

October 6, 2021By Simo Ruby Absolute, path, rails, ruby, server, startup, UsedLeave a Comment

Ruby-on-rails-3 – several questions about the drill

I have some questions about Capybara. I might as well ask here because the RDOC in the github page for Capybara is very suitable for setup and operation. But where is the list of APIs or available

October 6, 2021By Simo Ruby About, Dolphins, problems, rails, ruby, several, waterLeave a Comment

Ruby-on-rails – How to redirect using regular expressions in Rails routes?

My attempt to rewrite the rules in routes.rb might be self-explanatory:

match “/:user/: photo-thumb.png” =>
redirect(“/%{user}/photos/%{photo}/image?style=thumb”),
:photo => /[a-zA- Z]+/ I

October 6, 2021By Simo Ruby direction, expression, Rausement, region, Route, ruby, UsingLeave a Comment

Ruby-on-rails-3 – rails 3: Scaffold Destroy Action Redirects

I created a simple scaffold, the problem is, when I try to delete the record, click destroy rails to redirect to the show action, this is the link code automatically generated when I generate the s

October 6, 2021By Simo Ruby action, Destroy, rails, redirection, ruby, Scaffold, ShowLeave a Comment

Ruby-on-rails – Overweight Rails Default RAKE Task

I have a Rails 2.2 project in which I want to override the functionality of rake db:test:prepare tasks. I think this will work, but it doesn’t:

#lib/tasks/db.rake
namespace :db do
namespace

October 6, 2021By Simo Ruby coverage, default, rails, Rake, ruby, TaskLeave a Comment

How to access’ zip’gem (or ‘Rubyzip’) in Ruby?

I must miss something completely obvious, but I can’t seem to get the’zip’ gem to work. I have installed it with rubygems, just like I have done many other gems. Rubygem Said it was there but when

October 6, 2021By Simo Ruby Access, Gem, How, ruby, RUBYZIP, ZIPLeave a Comment

Ruby – Simple search using DataMapper and Sinatra

I am generally new to Ruby and backend development. That being said, I am trying to create a simple search form. I use Sinatra as the framework and Datamapper as my ORM .What is the best way to do

October 6, 2021By Simo Ruby ruby, Sinatra, using DataMapperLeave a Comment

Posts navigation

Page 1 … Page 5 Page 6 Page 7 … 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