4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:rails — newest first
  • Is Ruby Too Slow For Web-Scale?
    July 14, 2017 - permalink - https://www.speedshop.co/2017/07/11/is-ruby-too-slow-for-web-scale.html
    perf rails ruby scale
  • ActionCable: The Missing Guide - via @codeship | via @codeship
    March 30, 2017 - permalink - https://blog.codeship.com/actioncable-the-missing-guide/
    actioncable rails
  • Is Ruby dead? Hell no! - Analyzing RubyGems stats for 2016 | Infinum

    ouf :D

    January 20, 2017 - permalink - https://infinum.co/the-capsized-eight/analyzing-rubygems-stats-v2016
    rails ruby
  • Action View Overview — Ruby on Rails Guides

    Très bien pour les pages marketting où les textes à traduire varient beaucoup trop et où l'utilisation des variables n'est donc pas pratique.
    C'est aussi bien pour les mails !

    July 11, 2016 - permalink - http://guides.rubyonrails.org/action_view_overview.html#localized-views
    i18n rails
  • Note: Rails encoding

    Enfin trouvé la solution à mon probleme d'encoding :

    incompatible character encodings utf-8 and ascii-8bit

    Tout ça a cause d'un bug de la gem mysql qui pense que certaines chaines récupérées en base sont encodée en ascii-8bit alors que pas du tout.. La solution est simple : utiliser la gem mysql2 à la place qui résout ce probleme. Ce genre de bug rend fou car on a beau chercher une logique, il n'y en a pas, bref merci Google :-)

    April 23, 2016 - permalink - https://links.infomee.fr/shaare/Hl5uog
    encoding rails ruby
  • Ruby on Rails 3, incompatible character encodings: UTF-8 and ASCII-8BIT with i18n - Stack Overflow
    April 12, 2016 - permalink - http://stackoverflow.com/questions/4188677/ruby-on-rails-3-incompatible-character-encodings-utf-8-and-ascii-8bit-with-i18
    encoding rails
  • HTTP Caching in Ruby with Rails | Heroku Dev Center

    Pour modifier les header Cache-control pour pouvoir cacher les pages public quand user non auth

    expires_in 3.minutes, :public => true

    February 23, 2016 - permalink - https://devcenter.heroku.com/articles/http-caching-ruby-rails
    cache rails
  • fnando/i18n-js: It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
    January 29, 2016 - permalink - https://github.com/fnando/i18n-js
    i18n js rails translate
  • Ruby on Rails: How do you explicitly define plural names and singular names in Rails? - Stack Overflow

    Framework counterpart.

    In config/initializers, you will find a file called inflections.rb. There are some instructions in here, but you will want something along the lines of:

    ActiveSupport::Inflector.inflections do |inflect|
    inflect.irregular 'bonus', 'bonuses'
    end

    January 5, 2016 - permalink - http://stackoverflow.com/questions/3517989/ruby-on-rails-how-do-you-explicitly-define-plural-names-and-singular-names-in-r
    irregular plural rails
  • How Rails, Nginx and X-Accel-Redirect work together - The Data Asylum

    The need for X-Accel-Redirect (and it’s sibling X-Sendfile) comes from two distinct requirements
    The need to deliver large files.
    The need for those files to not be available to the public.

    December 31, 2015 - permalink - http://thedataasylum.com/articles/how-rails-nginx-x-accel-redirect-work-together.html
    nginx rails senfile
  • Speed up Rails with Nginx’s Reverse Proxy Cache | mattbrictson.com
    December 30, 2015 - permalink - https://mattbrictson.com/nginx-reverse-proxy-cache
    cache nginx rails
  • Devise & Rails: Tracking User Logins & Sign-ups - joanswork.com
    October 9, 2015 - permalink - http://joanswork.com/devise-usage-tracking/
    devise finance log rails ruby track
  • Brakeman - Rails Security Scanner
    September 17, 2015 - permalink - http://brakemanscanner.org/
    rails security
  • Rails Website Launch Checklist
    September 17, 2015 - permalink - https://gist.github.com/jaymiejones86/7886157
    rails
  • ruby on rails - Logging in delayed_job? - Stack Overflow
    August 20, 2015 - permalink - http://stackoverflow.com/questions/14631910/logging-in-delayed-job
    delayed_jobs log rails
  • methods - How do functions use hash arguments in Ruby? - Stack Overflow

    L'appel d'une fonction peut se faire avec ou sans parenthèse :

    foo() ou foo

    Ensuite, un Hash peut avoir plusieurs formes..

    {'a' => 12}
    où 'a' peut être n'importe quoi : string (comme ici), mais aussi objet,
    symbol : exemple :
    {:a => 12}

    La nouvelle syntaxe, valable uniquement si les clés sont des symboles :

    {a: 12, b: 'toto'}

    Et enfin quand on call une méthode qui peut prendre un hash en argument (entre autre), pas besoin de mettre les { }

    foo({a: 12, b:14})
    ou
    foo(a: 12, b:14)
    ou
    foo a: 12, b:14

    August 10, 2015 - permalink - http://stackoverflow.com/questions/16576477/how-do-functions-use-hash-arguments-in-ruby
    arguments hash named rails ruby syntax
  • Rails Login Security — Hakiri

    Sympa ce workflow de protection de login

    August 9, 2015 - permalink - https://hakiri.io/blog/rails-login-security
    devise finance login rails security
  • Truc con du jour

    Ne pas nommer une méthode de controller rails "requete"

    :D

    July 20, 2015 - permalink - https://links.infomee.fr/shaare/xP7CzA
    rails
  • The Rails 4.2 Default Files - RichOnRails.com

    4.2

    July 10, 2015 - permalink - https://richonrails.com/articles/the-rails-4-2-default-files
    rails upgrade
  • Rails 4 Custom Configurations

    Custom configuration in Rails 4.2 with x namespace

    July 9, 2015 - permalink - http://www.richardhsu.me/posts/2015/04/02/rails-4-custom-configurations.html
    config configuraton rails
  • Active Record Associations — Ruby on Rails Guides

    (Petite note pour ne pas oublier)

    Les ORM c'est cool.. mais franchement le temps que ça prend à maitriser... je me demande si ça en vaut vraiment la peine.

    Là, je viens de passer plus d'une heure à debug car je voulais faire un update dans le cas d'un has_many entre foo et bar :
    - foo = Foo.find(42)
    - set une collections d'objets : foo.bars = [bla,ble,blo]
    - puis foo.save

    Seulement le foo.save est de trop : dès l'instant ou la collection est set, l'objet est sauvé en base (update)

    Donc sans les validations de minimum et de maximum décrite dans le model foo.

    Et tout ça seulement dans le cas d'un update (dans le cas d'un create, ça ne trigger rien).

    pouah

    July 4, 2015 - permalink - http://guides.rubyonrails.org/association_basics.html#has-many-association-reference
    active_record orm rails
  • Debugging memory leaks in Ruby
    June 29, 2015 - permalink - http://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby
    debug memory rails
  • Removing Turbolinks from Rails 4 - Literate Programming
    June 15, 2015 - permalink - http://blog.steveklabnik.com/posts/2013-06-25-removing-turbolinks-from-rails-4
    rails turbolink
  • 4.5. Populating the Database with seeds.rb

    over pratique en dev

    June 2, 2015 - permalink - http://www.xyzpub.com/en/ruby-on-rails/4.0/seed_rb.html
    rails
  • jquery - Rails, javascript not loading after clicking through link_to helper - Stack Overflow

    grumbl

    January 4, 2015 - permalink - http://stackoverflow.com/questions/17600093/rails-javascript-not-loading-after-clicking-through-link-to-helper
    js rails
  • Readline in Ruby with rbenv

    Pour avoir ruby compilé readline (en installant avec rbenv)

    August 18, 2014 - permalink - http://vvv.tobiassjosten.net/ruby/readline-in-ruby-with-rbenv/
    rails rbenv readline ruby
  • Adding Authentication with Devise - Rails Girls

    eaf auth with rails

    July 17, 2014 - permalink - http://guides.railsgirls.com/devise/
    auth devise finance rails ruby
  • https://github.com/plataformatec/devise
    July 9, 2014 - permalink - https://github.com/plataformatec/devise
    auth rails ruby
  • Comment débuter en Ruby on Rails ? par @camilleroux

    Des ressources pour débuter

    April 26, 2014 - permalink - http://www.camilleroux.com/2011/09/08/comment-debuter-en-ruby-on-rails/
    rails ruby
  • Code School - Rails for Zombies

    Tuto interactif pour commencer avec ruby on rails

    February 22, 2014 - permalink - http://railsforzombies.org/
    elearning rails ror ruby