PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 2 3 Next

Install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1

[Author: Dingyu]   [Tue, 2017-03-14, 16:14]   [5392 views]

Ruby on Rails Linux

An easy, straightforward, understandable, and painless process to install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1
1. Install Java OpenJDK. Solr 4.10 requires Java 1.7 or greater. I installed Java 1.8 for myself.
yum list java*
# (option ... see full article

Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem.

[Author: Dingyu]   [Tue, 2017-03-14, 16:13]   [13037 views]

Ruby on Rails Linux

The process to install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem:
(Please click here to see my latest blog for installing Solr 4.10, in which I developed an easy, straightforward, understandable, and painless method to let Solr work together with Sunspot gem.)
1. ... see full article

Use an engine to share layout among multiple applications in Rails 3.2

[Author: Dingyu]   [Thu, 2016-08-11, 10:29]   [3530 views]

Ruby on Rails

This blog shows how I build an Rails engine to share layout among multiple applications step by step. The way I build the shared layout engine in this blog may be not the best. However, I only want to give some clue to those who are still struggling in building this kind of engine.
I have created Gi ... see full article

Setup Ruby on Rails environment in Centos with Apache and MySQL

[Author: Dingyu]   [Tue, 2016-07-12, 16:52]   [1311 views]

Ruby on Rails Linux

Install RVM (Ruby Version Manager)
sudo curl -sSL https://get.rvm.io | bash -s stable
rvm requirements
Install Ruby
rvm install 2.0.0
rvm use 2.0.0 --default
Install Rails
gem install rails
Install MySQL
sudo yum install mysql-server mysql-devel
sudo chkconfig mysqld on
sudo service mysqld restart
S ... see full article

Good Articles about Caching with Rails

[Author: Dingyu]   [Sun, 2016-03-06, 01:56]   [542 views]

Ruby on Rails

https://robots.thoughtbot.com/introduction-to-conditional-http-caching-with-rails
https://robots.thoughtbot.com/take-control-of-your-http-caching-in-rails
https://devcenter.heroku.com/articles/http-caching-ruby-rails
http://guides.rubyonrails.org/caching_with_rails.html
http://edgeapi.rubyonrails.o ... see full article

ActiveRecord Concurrency in Rails4: Avoid leaked connections

[Author: Dingyu]   [Wed, 2016-01-27, 14:31]   [769 views]

Ruby on Rails

Good references for this topic:
https://bibwild.wordpress.com/2014/07/17/activerecord-concurrency-in-rails4-avoid-leaked-connections/
https://www.digitalocean.com/community/questions/rails-app-getting-a-activerecord-connectiontimeouterror-timeout-error
http://stackoverflow.com/questions/11248808/con ... see full article

Solution for "bundle install" SSL problem on Windows

[Author: Dingyu]   [Wed, 2015-06-17, 00:21]   [909 views]

Ruby on Rails

if you run "bundle install" on Windows and get error like:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certific ate verify failed
then the article below may help you:
https://gist.github.com/fnichol/867550 ... see full article

Tutorial 2 -- Get familiar with Ruby On Rails (To be completed)

[Author: Ziming]   [Wed, 2015-03-18, 23:36]   [866 views]

Ruby on Rails

This tutorial is mainly based on the official Rails tutorial, chapter "Get Started"
Highlights
Rails is written with Ruby.
Rails default directories:
[Quote] A model represents the information (data) of the application and the rules to manipulate that data. In the case of Rails, models are primarily ... see full article

Serving Rails pre-compressed assets through Apache

[Author: Dingyu]   [Thu, 2015-02-26, 03:07]   [1003 views]

Ruby on Rails Linux

Serving Rails pre-compressed assets through Apache
Use the below configuration template in the file /etc/httpd/conf/httpd.conf to configure a Rails application.
<VirtualHost *:80>
    ServerName mywebsite.com
    DocumentRoot /my/rails_app/public
    <Directory /my/rails_app/public>
        Al ... see full article

A quick nav-bar with Bootstrap and Ruby

[Author: Ziming]   [Sun, 2015-02-08, 19:54]   [928 views]

Ruby on Rails

Under /view/layouts/... .html.erb, add the following things before :
Then, at the beginning of each page which linked to nav-bar, add the following code at the very beginning of the script:
    (e.g. the project page) ... see full article
Previous 1 2 3 Next

Most Popular in This Category: