snearch + rails   129

Rails 4.0.1 has been released | Hacker News
mattsfrey 5 hours ago | link

Damn Mike, you sure stay on top of the times. (Note to any aspiring rails coders, rails tutorial is an awesome place to start)


andyl 17 hours ago | link

Rails4 has been great - esp like the ability to use Hstore/UUID/JSON/Array datatypes with Postgres.


jordanthoms 11 hours ago | link

This is my favorite new feature as well - I love how this stuff (including loading extensions) can be represented in the schema.rb now, so you don't have to switch to sql-format schemas.


gesman 18 hours ago | link
Webdevelopment  Rails  4.0.1  PROs  Postgresql  JSON 
november 2013 by snearch
Rails Routing from the Outside In — Ruby on Rails Guides
Rails Routing from the Outside In

This guide covers the user-facing features of Rails routing.

After reading this guide, you will know:

How to interpret the code in routes.rb.
How to construct your own routes, using either the preferred resourceful style or the match method.
What parameters to expect an action to receive.
How to automatically create paths and URLs using route helpers.
Advanced techniques such as constraints and Rack endpoints.
do  Rails  Webdevelopment  routing  kw3513 
august 2013 by snearch
EE Major : Should I learn Ruby on Rails or Haskell? - Stack Overflow
Ruby (and Rails) cover pretty much the same areas of programming as Python (and Django) -- while any new language (and framework) will extend your culture, picking a new one that's pretty close to one you already know is a somewhat "low effort, low return" choice (can still be quite practical, if you have little time and energy to invest, or need the specific new tools for some practical reason, of course).

Haskell is very different from all the languages you already know, and for that very reason it will greatly expand your mind (and by the same token it will most likely be a much harder learning effort: no pain, no gain;-).

To pick between the two alternatives, therefore, "γνῶθι σεαυτόν" is the imperative -- if you know what you're after, then you will pick well (Attic Greek would be yet another potential language to learn -- probably even harder to learn than Haskell, but the mind-expanding possibilities are proportionately larger too!-).
share|improve this answer

answered Jun 6 '10 at 6:47
Alex Martelli


Thank you , Haskell has been really enlightening! – Vivek Narayanan Nov 6 '10 at 19:29
Webdevelopment  Rails  Haskell  no_pain_no_gain  if_you_know_what_you're_after_then_you_will_pick_well  print!!! 
august 2013 by snearch
Introducing Stripe UK | Hacker News
aculver 5 hours ago | link

For any Ruby on Rails developers in the UK who may now be jumping into Stripe for the first time because of this, Pete Keen has just released (or is releasing today) a new book called Mastering Modern Payments ( which focus on Stripe and Rails.

mrweasel 2 hours ago | link

Could someone people explain the appeal of Stripe? The APIs are nice, but so a most other payment providers.

The fee Stripe charges are pretty high. We would never agree to a percentage of the sale, only a fixed price. The fact that you can't change who process you credit card payments (can you?) excludes you from getting any good deals on fees. If you shop around you can save a lot of money.

Honestly getting a merchant account, if that's the excuse for using Stripe, isn't that hard.


Peroni 4 hours ago | link

Out of curiosity, what's the issue with PayMill? I always assumed they were a decent alternative?


germangirl 3 hours ago | link

ive implemented them into my shop and im totally happy with it to be honest. easy implementation, works fine & great supported provided.

Website  payment  E-Commerce  Stripe  auswandern  London  Rails  CONs  PayMill  PayPal  book_recommendation  United_Kingdom 
august 2013 by snearch
Getting Started with Rails — Ruby on Rails Guides
4.2 Say "Hello", Rails

To get Rails saying "Hello", you need to create at minimum a controller and a view.

A controller's purpose is to receive specific requests for the application. Routing decides which controller receives which requests. Often, there is more than one route to each controller, and different routes can be served by different actions. Each action's purpose is to collect information to provide it to a view.

A view's purpose is to display this information in a human readable format. An important distinction to make is that it is the controller, not the view, where information is collected. The view should just display that information. By default, view templates are written in a language called ERB (Embedded Ruby) which is converted by the request cycle in Rails before being sent to the user.

To create a new controller, you will need to run the "controller" generator and tell it you want a controller called "welcome" with an action called "index", just like this:
$ rails generate controller welcome index

Rails will create several files and a route for you.
create app/controllers/welcome_controller.rb
route get "welcome/index"
invoke erb
create app/views/welcome
create app/views/welcome/index.html.erb
invoke test_unit
create test/controllers/welcome_controller_test.rb
invoke helper
create app/helpers/welcome_helper.rb
invoke test_unit
create test/helpers/welcome_helper_test.rb
invoke assets
invoke coffee
create app/assets/javascripts/
invoke scss
create app/assets/stylesheets/welcome.css.scss

Most important of these are of course the controller, located at app/controllers/welcome_controller.rb and the view, located at app/views/welcome/index.html.erb.

Open the app/views/welcome/index.html.erb file in your text editor. Delete all of the existing code in the file, and replace it with the following single line of code:
<h1>Hello, Rails!</h1>
4.3 Setting the Application Home Page

Now that we have made the controller and view, we need to tell Rails when we want Hello Rails! to show up. In our case, we want it to show up when we navigate to the root URL of our site, http://localhost:3000. At the moment, "Welcome Aboard" is occupying that spot.

Next, you have to tell Rails where your actual home page is located.

Open the file config/routes.rb in your editor.
Blog::Application.routes.draw do
get "welcome/index"

# The priority is based upon order of creation:
# first created -> highest priority.
# ...
# You can have the root of your site routed with "root"
# root to: "welcome#index"

This is your application's routing file which holds entries in a special DSL (domain-specific language) that tells Rails how to connect incoming requests to controllers and actions. This file contains many sample routes on commented lines, and one of them actually shows you how to connect the root of your site to a specific controller and action. Find the line beginning with root :to and uncomment it. It should look something like the following:
root to: "welcome#index"

The root to: "welcome#index" tells Rails to map requests to the root of the application to the welcome controller's index action and get "welcome/index" tells Rails to map requests to http://localhost:3000/welcome/index to the welcome controller's index action. This was created earlier when you ran the controller generator (rails generate controller welcome index).

If you navigate to http://localhost:3000 in your browser, you'll see the Hello, Rails! message you put into app/views/welcome/index.html.erb, indicating that this new route is indeed going to WelcomeController's index action and is rendering the view correctly.

For more information about routing, refer to Rails Routing from the Outside In.
Rails  Lernherausforderung  do  Webdevelopment  kw3513 
august 2013 by snearch
RVM and rbenv

You saw the strips above, they offer a lot of the same functionality. In many ways rbenv and RVM are really just two sides of the same coin. A different way to solve the same problem. I will say this article is from a purely functional stance, I understand that under the hood rbenv and RVM are quite different.

There has been quite a bit of controversy surrounding the rbenv/rvm divide. I think, after installing both back-to-back on my own system, that their similarities outweigh their differences. One article I read about the subject compared RVM and rbenv to Rails and Sinatra [2]. I think that comparison really fits. Sinatra is a lightweight framework whereas Rails is much more robust. Sometimes sinatra just fits, and other times you'd be a fool to not go with Rails. If you need the features in RVM then use it, if you want more control and a lighter feel then use rbenv. It's all a matter of preference.

As a rubyist I'm just glad we have people like Wayne Seguin, and Sam Stephenson contributing to the community the way they do.

1.) rbenv gemset
2.) Ruby Inside - rbenv article
Additional References (Reading)

Begin Rescue End (RVM home page)
rbenv on github
rbenv  vs.  rvm  Ruby  Rails  installer  print!!  differenzieren  Kundenperspektive  projektspezifisch 
june 2013 by snearch
Why Ruby? | Hacker News
Ovid 5 hours ago | link

There are actually tons of shops that use Perl here in Europe. It's quite popular, though it's not going to hit Java or C levels of popularity.

I lived in London and there were always tons of Perl jobs there and here in Paris, I'm shocked to find out that there are far more Perl jobs than I expected. It also appears to be moderately popular in Germany.

So yeah, Perl may also be "off the radar" for many people, but it's still a strong market. Interestingly I'm seeing Perl dev pay scales getting pushed up because because there was a rush of devs going to other languages a few years ago. Now there's a shortage of Perl devs but the code hasn't gone away.


pimeys 4 hours ago | link

Ruby and Rails seem to be very popular here in Berlin IT scene. Still PHP and Java are a bit more popular, but it's not so hard to find work if you're a good Ruby engineer.


johnx123-up 6 hours ago | link

Node.js traction is true. As far as I know, Scala newbies are coming back to Java. With Play! and Scooter, Java is more Ruby than Scala. W
Perl  Freelancing  Standort_D_Land  London  Paris  Berlin  Ruby  Rails  Php  Java  Anforderungsprofil  Webdevelopment  Scooter  Play  Framework 
march 2013 by snearch
A love affair with PostgreSQL [Rails 4 Countdown to 2013] | The Remarkable Labs Blog
Out of all the supported databases available in Active Record, PostgreSQL received the most amount of attention during the development of Rails 4. In today's countdown post, we are going to look at the various additions made to the PostgreSQL database adapter.
Rails  Postgresql 
january 2013 by snearch
Twitter conversation with topfunky
j3 All forward progress stalled for nearly two years, it's *still* slower in many ways than Rails 2, Bundler is a nightmare, Node.js won.
Rails  Node.js  Node.js_won  Ashkenas_Jeremy 
december 2012 by snearch
Why critics of Rails have it all wrong (and Ruby's bright multicore future) | Hacker News
nateberkopec 2 hours ago | link

Yeah. Just read the top comment (as I write this): "You don't need all the ceremony and structure of Rails and MVC."

I think the problem with this outlook is that you don't need it...until you, you know, need it. Rails has a lot of niceties that you lose with Sinatra. Why not start from a superlight Rails app (using any of the many gems or ActionController::Metal options) and then add on bits and pieces when you need one? I think that this method is either just too difficult for some people to wrap their heads around or it offends their sensibilities as a programmer.

I've had too many personal Sinatra projects that have bogged down when I started reimplenting Railslike functionality.


jeltz 2 hours ago | link

To solve this problem is why Padrino was created. Padrino is a collection of "Railslike" functionality for Sinatra. So either start with a Sinatra project and then pick stuff from Padrino or start with Padrino in the first place. Padrino is highly modular.Ruby
Rails is great for JSON RPC over HTTP. It's not great for beautiful, consistent RESTful APIs. It still lacks basic support for hypermedia. Without hypermedia you aren't being RESTful and you aren't reaping the benefits of being RESTful. All you have is a weak convention for doing RPC with HTTP methods.

None of those companies are examples of REST either, they're all doing JSON RPC, and propping them up as RESTful does a disservice to REST and a disservice to Rails. How can Rails make progress towards hypermedia APIs if people won't even acknowledge that it's lacking?

I know people like Steve Klabnik are valiantly trying to get Rails to adopt hypermedia, but it isn't there yet, and there are significant technical and political barriers to overcome.

Node.js frameworks, being in their relative infancy, aren't burdened with the same barriers as Rails and have the opportunity to move faster than Rails could. No framework has dominated the Node.js community like Rails dominates the Ruby community; there's still the opportunity for a Node.js framework for building hypermedia APIs to take center stage.

dscrd 34 minutes ago | link

Having developed software on both Rails and Django, I prefer the latter. Reasoning: python's community seems more professional. They have well-defined language change and enhancement processes (the PEP), good docs online, almost every question imaginable has been answered already somewhere, and the performance ain't too bad.

Plus the code smell overall is just... lesser.

Then again, I came from a background of C and scheme, and somebody on c2 wrote that python appeals to people like me more.
Ruby  Rails  Padrino  Webdevelopment  criticism  Node.js  REST  Hypermedia  Python  Django  Framework 
september 2012 by snearch
Tech Talk: Spike Brehm - Meetups auf Airbnb
Airbnb's Wish Lists: Rich JavaScript App Architecture
Spike will discuss how his team built the frontend architecture necessary to support Airbnb's latest rich-client JavaScript app: Wish Lists. Built on top of Backbone.js and Handlebars, Wish Lists is an example of the new generation of single-page apps that is taking the web by storm. He will share how the team tackled a number of issues with this modern approach, including internationalization, client-side rendering, HTML5 pushState, cross-domain API, composite views, and memory management. He will also share his latest research into the holy grail for rich JavaScript apps -- DRY client-server rendering -- and why Airbnb is moving from Rails to Node.js.
modern  Webdevelopment  Javascript  modern_JS  Rails  Node.js  webcast  Trend 
september 2012 by snearch
Thoughts on Rails, Node, and the web apps of today | Hacker News
I have abandoned Ruby and Rails in its entirety. Why?
The single page application

The Single Page Application is one reason. It has changed the way we think of how apps should work. It's the current step along a journey that began with AJAX.

Rails made it easy to build AJAX-powered web applications; We had our view templates on the server, compiled them there, and shipped them to the client. Any AJAX feature simply fetched the compiled html and sent it back to the browser for the client to handle. Why would anyone want to change that?
The Server is the API

When you use Rails the way Rails wants you to use Rails, it's really productive.

But when you begin developing mobile applications that talk to the server via an API, you realise that the View in MVC does not always belong on the server. The presentation layer belongs to the domain of the client, and the server is the API. This decoupling of MVC is well-supported, but you then find that you're using Rails as an API alongside being a web application; It's not a clean definition of responsibilities.
And that's not all...

The view in MVC is not just HTML and CSS; it's the presentation logic, and the presentation logic needs structure. With this need, client-side frameworks like Backbone, Spine, and Ember have come into the picture.

These frameworks have shifted the location of MVC between the client and the server. That is not to say that the server is just a dumb wrapper around the database, far from it. It is to say that the logic of the application is now split between what is required in the API, and what is required by the client.

We're now forced to think about where our logic belongs, and not just follow the train tracks laid out in front of us.

So your Rails server becomes an API, and your web site, like the iOS app, is the client. It's a clean separation of responsibilies, but given what Rails was designed to do, it's like having a horse rider climb on top of an elephant.

So you begin to ask, why should I use Rails instead of something like Sinatra or Goliath? what is the value of Rails as just an API?

Or to put it this way, why would you consider alternatives?
modern  Webdevelopment  Rails  Node.js  Single_Page_Apps  print!  Trend 
july 2012 by snearch
Beginners guide to a modern web dev stack, from padrino to javascript | Hacker News
dataminer 1 hour ago | link

Padrino creates a rails like structure around sinatra. It provides convenience scripts, helper methods and some glue code to create rails style apps. If you like sinatra but want more structure around it you should definitely checkout Padrino.
Ruby  Rails  Sinatra  Padrino  Webdevelopment  Javascript  Backbone.js  Knockout.js 
april 2012 by snearch
Giles Bowkett: Rails Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript
It's more important to learn Node.js, CoffeeScript, and Backbone
If you're looking to do work you can get excited about, it's Clojure, Scala, or Node.js. Clojure and Scala both run on top of Java, which holds horrible memories for me, while Node.js involves a language I've mostly had a lot of fun with, despite its frequent idiocy. CoffeeScript is far from perfect, but it's a joy to use, because it reduces JavaScript's WAT factor down to a tolerable level of mild background noise.
Although I think you can get much better jobs with Node.js than you can with Rails these days, I'm much more interested in creating my own projects, and I'm having more fun with Node.js there as well. So I'm creating a series of videos which use making music to teach Node, CoffeeScript, Backbone,, and most importantly of all, jasmine-node, a Node.js port of the Jasmine BDD library for JavaScript. With jasmine-node, you can run your specs server-side most or all of the time (depending on factors I'll explain in these videos), and the payoff is fucking awesome.
Webdevelopment  Node.js  CoffeeScript  Backbone.js  print  Rails  Trend 
february 2012 by snearch
Hacker News | How Rails Developers do Ajax in 2011
4 points by bherms 5 hours ago | link

Could anyone share some good tutorials or guides on getting started with (preferably jQuery) AJAX and Rails 3?

I'm doing a little here and there in a current web app, but I could absolutely use some tips, pointers, and direction on better ways.


6 points by steveklabnik 5 hours ago | link

The big new feature is unobtrusive javascript:

7 points by glasner 6 hours ago | link

I wrote a small wrapper on top of backbone and Backbone.Rails.js [1]. The combo replaced a very bulky internal framework, and I would never go back.

TOP  Inspiration  webdevelopment  AJAX  Ruby  Rails  JSON  javascript  jQuery 
february 2011 by snearch
What I want out of a Web framework « Mike Burns, Coder
Pulling knowledge in from the rest of my career, I want to use Cucumber and something better than Selenium. In Rails we use Webrat and Holy Grail and EnvJS and ShamRack and a whole slew of other tools. There’s nothing stopping me from using Cucumber to describe my behavior except I can’t back it with a Haskell equivalent of Webrat.
Developers_Toolbox  Haskell  Ruby  Rails  Selenium  Cucumber  Webrat  Holy_Grail  Env_JS  Shamrack  webdevelopment 
january 2011 by snearch
Building a location based iPhone App: from idea to my first users - The Mission Lab
Rails to the rescue

GeoShare was an opportunity for me to learn Ruby on Rails. I have used several server platforms in the past including Django, Spring with Tomcat, etc. I am in love with Rails, especially when paired with Heroku. I will put it very simply and say I don't think I could have built GeoShare so quickly had it not been for Heroku and Rails. I also am happy to report that as of now I have still not spent a dime for hosting. But if GeoShare takes off I will be more than happy to spend money on scaling up on Heroku. I don't think I could have picked a better backend platform.

Mobile HTML5 really does rock

My knowledge of HTML and CSS prior to GeoShare, I am embarrassed to say, was about 8 years dated. The recipient page in GeoShare is built with HTML5 and CSS3 and it was a great opportunity for me to catch up with latest and greatest web presentation technologies. Among other cool things I did with the recipient mobile web page:
TOP  inspiration  mobile  development  Business  App_Store  iphone  iOS  html5  CSS3  Websockets  geolocation  Ruby  Rails  Heroku  Webhosting  webdevelopment  server_side  AJAX  Maps_Google  mehr_A_verdienen 
january 2011 by snearch
Hacker News | And suddenly, you're hip
27 points by msy 4 hours ago | link

Thing is, while both Ruby & Vim have been driven by what she's describing she neatly sidestepped why those movements got started in the first place. Ruby gained huge traction primarily via Rails because working on PHP is unenjoyable to many and Ruby is a really pleasant language to work with. Vim's recent resurgence can largely be traced to development of Textmate grinding to a complete halt. Textmate's rise a few years ago was due to BBEdit failing to evolve. Git beats seven shades of shit out of SVN. Erlang provides a proven answer to concurrency issues. Javascript is the only choice for the ever more important front-end side of web development. Each of these shifts of development momentum have rational, logical underpinnings.
webdevelopment  Ruby  Rails  Erlang  git  Php  vi  emacs  javascript  moden  Perl  Trend 
january 2011 by snearch
Phusion Passenger 3.0.0 RC 1 released – Phusion Corporate Blog
This is it, the first Release Candidate (internally named “pre 4″). A few more bugs have been fixed since beta 3, but if no more serious bugs are found then the next release will be 3.0.0 final.
Rails  Ruby  webdevelopment  Phusion_Passenger  server_side 
october 2010 by snearch
Hacker News | The Future's Pretty Cool, or Why I Love Ruby
10 points by shimonamit 5 hours ago | link

Thank you. As a Ruby on Rails programmer I couldn't agree more. Rails 3.0 will bring some maturity... programming to interfaces and APIs rather than implementations. I believe Javaland "got that" a long time ago.
ruby  rails 
april 2010 by snearch
Using Ruby on Rails for Web Development on Mac OS X
The Ruby on Rails web application framework has built up a tremendous head of steam over the last year. Fueled by some significant benefits and an impressive portfolio of real-world applications already in production, Rails is destined to continue making significant inroads in 2006. Simply put, Ruby on Rails is an open source tool that gives you the advantage of rapidly creating great web applications backed by SQL databases to keep up with the speed of the web. And with the release of Rails 1.0 kicking off the new year, there's never been a better time to climb aboard.

It should come as no surprise that Mac OS X is a favored platform for Rails development. Rails and its supporting cast of web servers and databases thrive on the rich Mac OS X environment. A popular text editor used by many Rails programmers is TextMate, a Cocoa application. And all members of the Rails core development team work with Macs.

This article introduces you to Ru
Inspiration  Ruby  rails  OS_X  Webdevelopment  tutorial  Lernherausforderung  print  programming 
february 2010 by snearch
Learning Ruby on Rails - Stack Overflow
I'd highly suggest if you are going to do rails dev for any amount of time you seriously consider getting a Mac. If you value your time and sanity it will pay for itself almost instantly. Depending on how you value your time 10 hours of debugging windows/linux setup problems and you have spend as much as a Mac costs anyway.
Ruby  rails  Linux  OS_X  Windows  Pro&Contra  print 
february 2010 by snearch
InfoQ: Clojure and Rails - the Secret Sauce Behind FlightCaster
I am not a monad master by any means, but I feel similarly about mondads as I do about multi-methods and macros. These abstractions are great, powerful, cool, and they get a lot of attention. I try to use these tools when they seem like the natural abstraction to make things easier, but a lot of the times all it takes is a little rigor in your thinking and you can do fine with plain old functional programming and data structures.
rails  Ruby  Webdevelopment  Clojure  AMI  amazon  Hadoop  Inferenz  machine_learning  TOP  Inspiration  Cross_Bradford  Interview  functional  programming 
december 2009 by snearch
« earlier      
per page:    204080120160

related tags

04  4.0  4.0.1  ActiveRecord  AJAX  amazon  AMI  Anforderungsprofil  Angular.js  announcement  Apache  ApplicationServer  App_Store  Aquamacs  Architektur  asdf  Ashkenas_Jeremy  asynchronous_event_processing  auswandern  auswerten  Authentication  Backbone.js  background_processing  background_worker  Berlin  book_recommendation  Bootstrap  Business  Capistrano  CL-WHO  Clojure  CoffeeScript  Coffeescript  command_line  COMMON_LISP  CONs  criticism  Cross_Bradford  CRUD  CSS  CSS3  Cucumber  deployment  Developers_Toolbox  development  di  differenzieren  Distribution  Django  do  dranbleiben  E-Commerce  ec2  editor  elisp  emacs  Env_JS  Erlang  Express  Fernandez_Obie  filetype:mov  framework  Freelancing  FSEvent  full_stack_developer  FUN  functional  fun_in_programming  generate  Gentoo  geolocation  git  Go  Golang  Hadoop  Haml  Haskel  Haskell  Heroku  Holy_Grail  HTML  html5  http  http-Server  Hunchentoot  Hypermedia  IDE  if_you_know_what_you're_after_then_you_will_pick_well  Image  Inferenz  init.el  inspiration  install  installer  Interesse  Interview  iOS  iphone  Java  javascript  jQuery  JSON  Knockout.js  Kundenperspektive  kw3413  kw3513  kw3713  Lernherausforderung  Linux  Load_Balancing  London  machine_learning  Magento  Maps_Google  MEAN_Stack  media:video  mehrgleisig  mehr_A_verdienen  mi  mo  mobile  moden  modern  modern_JS  MongoDB  MongooseJS  MVC  mysql  nginx  Node.js  Node.js_won  no_pain_no_gain  online  Opera_Mini  OS_X  Padrino  Paris  Passenger  passenger-install-apache2-module  payment  PayMill  PayPal  Perl  PHP  Php  Phusion_Passenger  Play  postgresql  Postmodern  print  print!  print!!  print!!!  Pro&Contra  Profession  Profiling  programming  projektspezifisch  PROs  Puma  Python  Rack  rails  Rails_Guides  Rants  rbenv  Release_Notes  Resque  REST  Review_of_JumpstartLab’s_Rails_Blogger_Tutorial  routes  routing  ruby  rvm  SASS  scaling_website  Scooter  security  Selenium  server_side  Shamrack  Sidekiq  Sinatra  Sinatra_Framework  Single_Page_Apps  slow  Snap  Sneakers  so  Software  SQL  Standort_D_Land  Startup  startup_template  streaming  Stripe  Tipps_und_Tricks  Tokyo_Cabinet  Tools_Software  TOP  Tramp  Trend  tutorial  Twitter  Ubuntu  Unicorn  United_Kingdom  v4  Vertiefung  vi  Video  vs.  webcast  Webdesign  webdevelopment  Webdevelopment::Zahlungssysteme  Webhosting  Webrat  WebROaR  Webserver  website  Websockets  Windows  Wordpress  Xen  XML  Yahoo 

Copy this bookmark: