r/LearnRubyonRails • u/[deleted] • Jan 29 '14
r/LearnRubyonRails • u/ducktypelabs • Jun 08 '16
How To Keep Your Controllers Thin With Form Objects
r/LearnRubyonRails • u/burnsticks • Jul 29 '22
How I successfully became a software engineer in 3 months
r/LearnRubyonRails • u/metaincome • Sep 25 '19
Build a REAL ESTATE / PROPERTY APP in Ruby on Rails 6 [Part 3]
Hi guys, a couple of weeks ago I created a new video on building a Real Estate / Property Listing platform in Ruby on Rails 6 and shared it here on reddit. I've finally gotten some time to publish part 3 a couple of days ago. Hopefully this is of some help to some of you guys.
Part 1: setup user accounts using the devise gem, add functionality for users to create a property listing (image upload using carrierwave gem to Amazon S3), then on the front end we build a latest properties widget and property profile view.
https://www.youtube.com/watch?v=qvGGz-2WHpU
Part 2: create an attractive property profile showing a see more/see less property details section, agent profile picture and company, related properties from that agent, responsive design and more.
https://www.youtube.com/watch?v=SCXiNYoDibw
Part 3: on property profile we'll add a click to view telephone number, a modal contact form to contact the agent and a google map that is generated from the properties address
https://www.youtube.com/watch?v=3UrvdFlWakw
I'll be posting new web app builds on YouTube using Ruby on Rails 6 so feel free to check out the channel and add some recommendations for upcoming builds.
Cheers :)
r/LearnRubyonRails • u/[deleted] • Mar 24 '15
An associate of mine started a kickstarter for a screencast course of building an API. Thought some might be interested. I'm interesting in seeing this funded because I want to watch the course!
r/LearnRubyonRails • u/zappable • Dec 28 '14
Interactive and visual course for learning Ruby on Rails
r/LearnRubyonRails • u/johnsonjennifer1987 • Feb 07 '14
Why to learn Ruby on Rails?
allerin.comr/LearnRubyonRails • u/YogX • Dec 28 '18
Need a new year's resolution? Try 'The Ultimate Reading List for Developers' post I wrote
r/LearnRubyonRails • u/ducktypelabs • Jul 15 '16
Why You Shouldn't Roll Your Own Authentication
r/LearnRubyonRails • u/SupremeDesigner • Jun 04 '16
Basic Friendly Coding Help /r/CodingHelp
Hey guys,
So I know this a great sub for all things programming related, but I thought I'd just pop in and mention our new sub /r/CodingHelp
Over the last few days we have revived it and now have over 1000 subscribers already! Please come and check it out if you want some free, friendly and easy to understand coding help!
Mods, if this isn't allowed, sorry, please remove it
r/LearnRubyonRails • u/Ruby_Snoopy • Nov 19 '15
Apache Thrift: How to combine a few languages together?
r/LearnRubyonRails • u/43northwebdesign • Mar 08 '19
Is this possible with RoR? Slick Grid, example inside
I am looking at something like
https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example3-editing.html
I have no clue where to begin, I just need a gridtable that I can edit and on the high end of requiremnts have my cells update on a key change into my postgres DB. Any ideas if I am on the right track or maybe RoR isnt a great fit for this?
r/LearnRubyonRails • u/swig_- • Dec 09 '15
Modifying Ruby on Rails tutorial's following functionality (link to my stackoverflow question)
r/LearnRubyonRails • u/[deleted] • Aug 03 '16
Trying to keep ruby running on server
I don't necessarily need help with the ruby portion part of my bot but What i need to figure out is how to keep in running once I leave putty/ssh session.
Here is where I am at
login to putty
cd into apps directory
app start
the app runs fine without issue but I want to keep it running when I leave the server. Does anyone have any advice on how might approach this?
Edit: found a solution that worked. Here it is just in case anyone has the issue, Solution found on this dudes site http://www.stefanhayden.com/blog/2015/05/14/how-to-use-gem-cli-commands-in-supervisor-on-ubuntu/
Using an app called supervisor with the config:
[program:ebooks]
command=/var/lib/gems/2.3.0/gems/twitter_ebooks-3.1.6/bin/ebooks start
directory=/ebooks_testbots/
autostart=true
autorestart=true
stderr_logfile=/var/log/ebooks.err.log
stdout_logfile=/var/log/ebooks.out.logr/LearnRubyonRails • u/piratebroadcast • Sep 19 '13
This course is $200 but really really well worth it - Pragmatic Studio Ruby on Rails course. I got my moneys worth.
r/LearnRubyonRails • u/wloczykij95 • Mar 01 '17
Action Cable + Active Job for live notifications - guidance needed
I have a Store model with opened_at and closed_at fields and some client side application(in my case React app) in which you can search for a store and display some related info.
I have successfully integrated Action Cable so that it broadcasts changes after some update on a given store instance i.e when the store changed it's offer, contact info etc..
now I want to notify user in real time that store has been closed.
I've managed to do it client side but I am wodering If it wouldn't be better to watch for the moment when the current time is beyond the opened_at - closed_at interval on the server side and then broadcast the message to the subscribers.
I would probably need to run some worker if there are some subscribers but I'm not really sure how to approach this problem.
So far I have a simple StoreChanged Channel that streams_from 'store_changed_#{params[:id]}'
I would appreciate some advise on how to approach this problem.
thanks in advance guys.
r/LearnRubyonRails • u/geniusdude11 • Jul 17 '20
This is just a list with a few job openings for ruby developers. Maybe can help someone!
docs.google.comr/LearnRubyonRails • u/Reginald_Martin • Aug 10 '20
Free Ruby Programming Language Tutorial for Beginners | OdinSchool
r/LearnRubyonRails • u/[deleted] • Jan 14 '16
How to put a model article inside another view template?
In the online Rails getting started guide, I made a sample app that made articles in a database and allowed me to access them via the /articles route. The thing is, I already have an html page that I want to show one article or two articles in two different places on the page. How do I put the articles into the places on the page by going to a route like /display/two-articles ?
r/LearnRubyonRails • u/farmerclause • Sep 02 '15
Having trouble with railstutorial.org chapter 11/AWS - heroku crashing
HI /r/learn_rails, could really use some help!
I've finished Chapter 11 but my Heroku app won't load.
My carrier_wave.rb reads:
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_credentials = {
# Configuration for Amazon S3
:provider => 'AWS',
:aws_access_key_id => ENV['S3_ACCESS_KEY'],
:aws_secret_access_key => ENV['S3_SECRET_KEY'],
}
config.fog_directory = ENV['S3_BUCKET']
end
endThe environment variables are set in heroku.
My heroku logs show:
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
heroku[web.1]: Stopping process with SIGKILL
heroku[web.1]: Process exited with status 137
heroku[web.1]: State changed from starting to crashed
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cryptic-escarpment-6115.herokuapp.com request_id=cdbf878e-b272-4e85-8917-5be7a46c6448 fwd="68.81.200.36" dyno= connect= service= status=503 bytes=
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cryptic-escarpment-6115.herokuapp.com request_id=b7e408dc-d831-47f1-99ee-5f74b26a2a72 fwd="68.81.200.36" dyno= connect= service= status=503 bytes=When I run heroku ps (after a restart) it shows:
=== web (Free): `bundle exec puma -C config/puma.rb`
web.1: crashed 2015/09/02 15:24:17 (~ 10s ago)I had hurl.it try to GET my page and I got a 503 error
Does anyone have any idea what could be wrong? I've made changes to carrier_wave.rb as suggested in various StackOverflow questions, added an application.yml file (I've since removed), and have declared the variables in secrets.yml like this (also removed):
S3_SECRET_KEY: <%= ENV["S3_SECRET_KEY"] %>None of it has helped. In AWS I added a user, gave him full permissions to the bucket, and I even tried setting the permissions to allow everyone R&W.
Any advice is much appreciated. I can provide any additional code necessary.
r/LearnRubyonRails • u/wloczykij95 • May 16 '16
Understanding customized has_many association
Given association in User class:
has_many :followers, through: :follows_as_fallowable, source: :userIt returns user instances that follow a given user. But when i started to dig deeper i realized that i don't completely understand why does this association(user.followers) returns User objects. Based on what? I know that it can deduce by name of the association or class_name hash argument, but neither of these actually matters in this case. I don't have Follower model and i have not provided class_name attribute. Source parameter just say that it should search by user column in join table. So how does Rails know that it should select from Users table?
follow_as_followable is another association in User model:
has_many :follows_as_fallowable, class_name: 'Follow', as: :followabler/LearnRubyonRails • u/Alena_RRL • Oct 29 '15