Sqlite3 with ruby
activeadmin0.6.0+rails3.2.13在用thin或nginx+passenger跑生产模式时i18n无效的情况

Ruby tips

rux posted @ Nov 13, 2012 07:44:02 PM in ruby with tags ruby , 1548 readers

Some ruby tricks I just don't know where to put, so all gathering here.

open-uri:

use URI::encode(you_url) can avoid encoding mess.

open(URI::encode("http://www.baidu.com/s?wd=#{keyword}&pn=#{pn}")) do |f|
  do_something
end

inifile:

IniFile Docs

install

gem install inifile

useage

require 'inifile'

ini=IniFIle.load("some.ini", :encoding => "utf-8")
ini[:section_name].each do |k,v|
  do_something
end

johni said:
Nov 30, 2018 05:38:24 PM

This is something new kind of app.I will write about this in my assignment for <a href="https://www.huffingtonpost.com/shannon-ullman/dissertation-writing-serv_1_b_12779230.html">top dissertation services</a>.People will be awestruck after getting aware of these kinds of app.

jennifer said:
Apr 20, 2020 03:26:54 PM

Ruby is a dynamic, open-source programming language and it is very easy to learn. There are many professionals are using this language for developing. From this article, you can about Ruby language and you will get some tips of it. louvre tour online

Zaiya said:
Jul 15, 2020 02:38:22 PM

It is a simple and easy programming language to learn. https://www.fullmobilesignal.co.uk But it still requires experience for you to become an expert in it. There are many online tutorials in order to learn and polish your coding skills in Ruby. Try out it to become a master of it.

nio said:
Jul 20, 2020 02:27:57 PM

For those people who are studying computer science engineering or related to computer software will be helpful with this post. Is CBD Legal in the US Here they can study the programming languages especially the ruby language.

charlly said:
Jul 23, 2020 07:40:16 PM

Ruby is a very simple programming language to learn and you are making it even more simple through your proper examples. I love the learning with your examples. It is very simple to understand. Thank you so much.   photo editing service

Juvanta said:
Jan 19, 2021 11:48:53 PM

Thanks a lot for sharing this Ruby trip but I didn't get a complete answer to that and I really wish to know about this programming code and also the Ruby tips so please at some description about the content you have discussed here Plant-Based Meal Delivery Winnipeg

Felix said:
May 04, 2021 11:51:22 AM

You know that Ruby is a programming language and free software environment for demographic computing and graphics. social media marketing agency in kerala It is a free and open-source language. This article on ruby tricks is very informative. Thanks for providing it.

Glendich said:
Jul 17, 2021 06:21:56 PM

Vijayalakshmi Medical Centre has completed 10 years of success in the field of gynaecology and infertility. We are the best among the first best ivf treatment in kerala few comprehensive dedicated infertility hospitals in Asia. Our expertise in the field of infertility has made us come forward with an exclusive department in our hospital. We are delighted to present our infertility department ‘Babycart’.

Dwyane said:
Jan 01, 2022 02:22:35 PM

They have provided or explained the Ruby in the best way possible as it is easy for everyone to understand what it is and I request you to come up with more such helpful contents Learn More Here

Emsculpt said:
Jan 26, 2022 05:58:43 PM

It's a great pleasure reading your post. It's full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.

Website said:
Feb 05, 2022 07:52:46 PM

is prostate 911 safe
I really appreciate the kind of topics you post here. Thanks for sharing great information that is actually helpful. Good day!

Website said:
Feb 06, 2022 02:11:02 AM

Gardnerville Web Design
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.

Website said:
Feb 07, 2022 05:53:57 PM

is hawkeye hemp cbd gummies scam
I am no expert. But I believe you just made an excellent point. You certainly fully understand what you are speaking about. and I can truly get behind that.

Website said:
Feb 12, 2022 03:37:02 PM

does keoni cbd gummies work
I love this blog! The flash up the top is awesome!

Website said:
Feb 18, 2022 01:27:31 AM

live well cbd gummies ingredients
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! Keep rocking.

Website said:
Feb 20, 2022 01:24:32 AM

where to buy trichofol
I'm glad I found this website. I couldn't find any knowledge on this matter prior to. Also, operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know. I am always looking for people to check out my website.

hotmail said:
Feb 27, 2022 04:17:55 PM

Excellent and very exciting site. Love to watch. Keep Rocking.

amb slot กติกาบิงโก said:
Feb 27, 2022 06:33:13 PM

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing.

Website said:
Mar 02, 2022 01:29:50 AM

hemp bombs cbd gummies reviews
Thanks for sharing the info. Keep up the good work going. I really enjoyed exploring your site. Good resource.

비크릿검증 said:
Mar 11, 2022 01:38:29 AM

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it.

meal ready to eat said:
Apr 07, 2022 03:34:56 AM

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing.

Website said:
Apr 15, 2022 07:02:23 AM

infant brain development
I found that site very useful and this survey is very curious. I've never seen a blog that demands a survey for these actions. Very curious.

joker888 said:
May 27, 2022 02:25:16 AM

You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!

Website said:
Jan 20, 2023 01:46:26 AM

Instagram PVA accounts
I read that Post and got it fine and informative. Please share more like that.

Website said:
Jan 20, 2023 01:57:28 AM

Buy Gmail pva accounts
Thanks for sharing the info. Keep up the good work going. I really enjoyed exploring your site. Good resource.

Website said:
Jan 20, 2023 02:16:58 AM

Buy Gmail pva accounts
Yes, I am totally agreed with this article and I just want to say that this article is a very nice and very informative article. I will make sure to be reading your blog more. You made a good point but I can't help but wonder. what about the other side? Thanks!

Website said:
Jan 25, 2023 02:30:12 AM

Buy Instagram PVA Accounts
Positive site. Where did you come up with the information on this posting? I'm pleased I discovered it though. I will be checking back soon to find out what additional posts you include.

Website said:
Jan 25, 2023 02:47:26 AM

Buy Gmail Accounts
I found that site very useful and this survey is very curious. I've never seen a blog that demands a survey for these actions. Very curious.

Website said:
Jan 25, 2023 03:05:42 AM

Buy Gmail PVA Accounts
What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more posts like these. Thank you very much.

Website said:
Jan 25, 2023 11:23:56 PM

Viking Range Repair
The information you have posted is beneficial. The sites you referred were good. Thanks for sharing.

Website said:
Feb 02, 2023 01:59:38 AM

Bathroom remodeling services in los altos
I am very happy to discover your post as it will become on top of my collection of favorite blogs to visit.


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter