Stream

Join this community to post or comment

Aaron Krauss

News & Cool Stuff  - 
 
I just published the last major post in my Building a JSON API with Rails series. The topic: Implementing Authentication

You can now follow along with the whole blog series to learn how to build a JSON API with Rails - covering setting everything up, serialization, and authentication!
10
2
Nicolas Mena Garzón's profile photoGautier LOTERMAN's profile photo
Add a comment...

Daniel Reed

News & Cool Stuff  - 
 
How to send SMS in Ruby.

Full tutorial and sample code: https://www.sinch.com/tutorials/send-sms-ruby/
1
2
Nicolas Mena Garzón's profile photoAndrea Barsotti's profile photo
Add a comment...

Antonio Novoselnik

News & Cool Stuff  - 
 
How to build a single page application with Ruby on Rails and AngularJS
Part 1 of the tutorial in which you will learn how to build a single page application with Ruby on Rails and AngularJS.
20
3
Nicolas Mena Garzón's profile photoYasser Khan's profile photo
Add a comment...

Julian David Mo Ra

Looking for help...  - 
 
Good evening, I'm starting me on Ruby on rails, I am creating a website to go into this new world. Need help, the problem I have is I want to show an image that is located in the "assets" folder and image browser does not charge me, I've tried with the following codes:

<img src="<%= asset_path 'img/portfolio/2.jpg' %>" class="img-responsive" alt="">

<img src="/assets/img/portfolio/2.jpg" class="img-responsive" alt="">

I have also tried several addresses from the image:
/assets/img/portfolio/2.jpg
assets/img/portfolio/2.jpg
/img/portfolio/2.jpg
....

Here I leave the screenshots; one with the IDE and other browser.
The browser tells me error 404 on the images that I want to load.

Any help is appreciated them.
1
Anbiniyar Muniandy's profile photoPaolo Ripamonti's profile photo
5 comments
 

# app/assets/images/logo.png
= image_tag('logo')

# Outputs something like <img src="/assets/logo-[hash].png" />

# public/images/logo.png
= image_tag('/images/logo.png')

# Outputs something like
# <img src="/images/logo.png" />
Add a comment...

Jason Hsu

Discussion & Meta  - 
 
I'd like to hear your opinions.

On the one hand, it's clearly easier in the short run to use the devise gem.

On the other hand, Rails Tutorial maintains that modifying an off-the-shelf solution is a "black box" and can be more work than creating the user functionality from scratch.
1
Ashwani kumar's profile photoJeff Lunt's profile photo
4 comments
 
Also, learning the most common tool for the task in the community (devise, for now) will pay dividends over time, since you'll be knowledgeable on the most common tool. Good skill for work.
Add a comment...

Christian Rolle

News & Cool Stuff  - 
3
Christian Rolle's profile photoErik Ostrom's profile photo
4 comments
 
Thanks for understanding that I meant it as constructive, not critical.
Add a comment...

Miguel Parramón Teixidó

Discussion & Meta  - 
 
Barcelona is a great city right now for Ruby and Javascript developers, with tons of job opportunities, a vibrant startup scene, and the same weather and Mediterranean lifestyle that brings millions every year:

http://www.developingandrails.com/2015/01/the-ruby-and-ruby-on-rails-scene-in.html

I'm thinking on starting a monthly Barcelona job offers writeup, would you be interested?
I was asked on Reddit for some info about the Rails scene in Barcelona, so I went ahead and compiled some links here so that everyone can take advantage of it :) If you think there's something more worth adding, comment away!...
6
Add a comment...

Jones Vitolo

Looking for help...  - 
 
I have 10 years of experience with Linux and want to start programming in ruby. which book you suggest for beginner, already have programming logic
1
1
Jones Vitolo's profile photoArjen Althoff's profile photoRonald Copeland's profile photo

About this community

Rails, with a focus on technical news and cool articles from the people in the community. Certain types of posts tend to be off-topic for this community: > Job postings or solicitation of work > "X vs. Y" posts such as "Ruby vs <insert language>" - community members are generally able to judge for themselves, and these types of posts often start flame wars for no reason > Advertisements for commercial services > Links with referral codes (esp. where the poster stands to benefit) > Repeat usage of the community for self-promotion > Posts from an organization, rather than an individual > Posts that are about more general programming topics, and are specific neither to Ruby, nor Rails

Bilal Mughal

Looking for help...  - 
 
Hello Everyone
Any one has ruby beginner videos
plz tell me
2
Yasser Khan's profile photo
 
Search for Derek Banas on YouTube. He has some good basic videos 
Add a comment...

Sanket Patel

Looking for help...  - 
 
Hey All!

I'm new to Ruby on Rails and willing to learn thoroughly.Please suggest some online Udemy course or other resources.

Pretty Excited :D
1
Enda Rochford's profile photoChris Thompson's profile photo
13 comments
Add a comment...

Enda Rochford

Looking for help...  - 
 
Some help with Heroku?

Hi guys, I've deployed my first app to Heroke, its a simple shop front app with a table index that shows a picture of the product. Or at least it does when I run it locally. On heroku the images only show up when i create a new product, and after a few minutes when i refresh the page the pcitures don't show up anymore. Its like they aren't being saved properly or only exist in the cache until I refresh. I'm new to Heroku so do I need to make any changes to the app for deployment?
All feedback appreciated.  
1
Ian Irving's profile photoEnda Rochford's profile photo
11 comments
 
My lack of knowledge of how Heroku works seems to have been the problem. So basically I need to figure out a different method of storing the images, like S3. Thanks for the advice
 
Add a comment...

Dawid Gosławski

News & Cool Stuff  - 
 
Maybe you will find that useful, bash script that checks for rubocop Errors and Warnings only for changed lines. https://gist.github.com/alkuzad/dd729aca36a810892772

Note: Rubocop does not work with erb - it creators explictly said it won't so use grep to filter these files. Also you can enable also convention mistakes by removing last `grep -v " C:"`
1
Add a comment...

Alan Museljich

Looking for help...  - 
 
Hi everyone,
I'm getting into rails, are there any blogging platforms similar to wordpress developed in rails?
1
Alan Museljich's profile photoMarcello Henrique Dias de Moura's profile photo
Add a comment...

Nicolas Mena Garzón

News & Cool Stuff  - 
2
1
Pedro José Piquero Plaza (Gowikel)'s profile photo
Add a comment...

ming ming

Looking for help...  - 
 
has any body experienced with elasticsearch for dsl query, searching the child and returning parent.  
1
Add a comment...

Ain Tohvri

News & Cool Stuff  - 
 
vim-capistrano now supports Capistrano-specific syntax highlighting. Install with Pathogen. You're welcome to contribute! #devops #vim #devtools #capistrano  
vim-capistrano - Capistrano plugin for Vim
1
Add a comment...

Ain Tohvri

News & Cool Stuff  - 
 
Big news: Debian Jessie is out! #debian #linux #foss 
1
Mathew Snyder's profile photoJason Hsu's profile photo
9 comments
 
Check out my Debian Stable Vagrant box with pre-installed RVM:
https://github.com/jhsu802701/vagrant-debian-jessie-rvm

Unlike the Ubuntu Vagrant boxes, my Debian Stable Vagrant box is low maintenance.  The reasons I insist on using my Vagrant box are:
1.  Vagrant works in Linux, OS X, or Windows.  While Ruby on Rails can be installed in Windows, very few people know how to do this, and this makes it hard to find help.
2.  Installing Ruby on Rails manually requires babysitting long processes and takes hours.  It's a painfully slow process when you know what you're doing.  If you don't know what you're doing (which is likely the case in Windows), then it's even worse.  And you can't do anything until you have Ruby on Rails installed - the ultimate waterfall process.
3.  How do you make sure that your Gemfile/gemspec and setup instructions for your project are complete?  There have been times when a project I started didn't work on a second machine.  I've had long cascades of error messages during deployment.  This is why I insist on returning to a fresh Ruby on Rails environment.  I can do that in my Vagrant box, but I cannot do that when RVM is installed directly on my host OS.
4.  If RVM stops working properly or does something that you don't expect, what are you supposed to do?  I now just destroy and rebuild my Vagrant box.  I don't have to spend time troubleshooting RVM, and I don't have go through the long process of installing RVM again.
Add a comment...

Jaime Gonzalez

Looking for help...  - 
 
Hi all, I have a fully working Rails app which now needs to serve as a json API. I've been searching on google but the number of possibilities is overwhelming. Any direction on where to start and what to use is much appreciated.

Thanks in advanced.
1
Frederiko Costa's profile photoJonathan Krengel's profile photo
7 comments
 
Take a look at repl.
Add a comment...