Reusing code from Hartl Rails Tutorial [closed] - ruby-on-rails

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I've almost completed Michael Hartl's Rails Tutorial. Absolutely loved it, and loving what I've learnt about Rails.
It occurred to me, that I could reuse most of what we've done for the other app ideas that I have. We have great user registration, authentication, security and testing. It would be 'straightforward' to modify what I have here for other purposes.
I just want to ask if this is a standard practice when building new apps (reusing what you already have), and if there any gotchas or things I've not considered in looking to do so?
Loving getting back into coding, and can't wait to get my first idea out into the wild!

These are the standard practices. But of course it all depends on the requirements, based on requirements you need to modify some things.
Also you can refer guides.rubyonrails.org for more.

One thing that I found useful to do is create a base app that includes an Authentication system such as from the Rails Tutorial book, basic templates with a navigation bar and footer and a home and about page. And I connect Bootstrap. I call it Baseapp and when I start a new app I just copy it to a new folder and rename it. Then start customizing it from there.

Related

property web builder app [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have been working on the Propertywebbuilder app on Heroku.
I am looking for help on how to:
edit the html, so i can add an item to the footer.
I would also like to know how i can add more functionality to the app.
it is built with Ruby on rails.
here is the link to the app: PropertywebBuilder
I have deployed it on Heroku and have been playing around, but would like to learn how to improve and add things to it.
many thanks
You need to learn about Rails no one is just going to code for you, unless you're paying them some serious money at least.
The two best resources that helped me learn Ruby on Rails are below. The first is a free book by Michael Hartl https://www.railstutorial.org/book he also has some screencasts but you have to buy those.
the second resource was a company called the Pragmatic Studio that I actually learned about from reading Hartl's book. https://pragmaticstudio.com/ they offer a low cost Rails I and Rails II course that is extremely good. It got me up and building web apps quickly.

How to publish and implement Ruby file to my website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a beginner of Ruby. I want to establish my website by programming with Ruby language.
Before that, I used to upload HTML files to my web-host server, so that I could update my website. But now I have no idea about what should I do with Ruby file.
Thank you!
If you are using the rails framework you may wanna try using cloud9 instead. Brackets from what i understand is "local". Whereas cloud9 is a "real" IDE. Additionally you can easily push your code to heroku where your code will be hosted at.
To get things started just head over to cloud9 to create an account to setup your IDE. If you are unfamiliar with it there are lots of guides out there that can help you to get things started.
However if you lack the fundamentals in using the rails framework, guides.rubyonrails.org may be a good place to start too.
Update:
There is no best language when it comes to developing a website. The fundamentals of a webpage are HTML/CSS.
HTML gives you the bones or structure, such as your titles and your paragraphs etc.
CSS gives you your styling, such as creating buttons or changing font color etc.
This 2 languages form the core part of what would be your website, at the very least on the front end (meaning to say what people see when they visit your website)
JavaScript is not a must but definitely a plus. It is able to improve the UI/UX (user interface/user experience) of your website.
Lastly would be your back-end language; what handles the processes that goes on behind the scenes. If you choose ruby (and by extension rails) then that is fine as well. Basically your back-end language will support your database and CRUD (create, read, update, delete) actions.

(temporarily)using and learning ruby on rails without internet [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I'm about to leave for africa for 2 weeks where i will for the most part not have an internet connection, during which i am going to start learning ruby on rails so that i can implement it in the social network i am going to start building when i get back. Im planning on saving the tutorials from rubyonrails.org to my computer before i go so that i can still use them but it seems like almost all of them are dependent on me being able to download files from the internet(for example won't "$ rails new blog" pull that info from the rails server?), does anyone know of a way i could use ruby (in particularly these tutorials) without the internet (like maybe i just need to pre-install a bunch of gems or something?)
I have basically no experience with rails so sorry if my interpretation of ruby and these tutorials is incorrect.
Theoretically, yes, practically, no. Sure, you can fire up a local web server and write code, but you obviously don't want to write everything yourself, you want to take advantage of ruby's gem package system. This will, obviously require an internet connection.

Where to start with my web app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
As a learning exercise I want to create a simple webapp - I am familiar with html/css but want to delve into more backend .
My learning objectives for the app are relatively simple:
Create the app using ruby (as I'm learning this at the moment)
Learn how to store data into a database
How to display stored data
Have the app available online - I was thinking either sinatra or RoR?
I've uploaded an image of what I want my app to look like and do. I am able to make the various input fields and buttons using html and style with css but don't know where to go from there to create a database and link it to the buttons etc.
I'm not after completed code, but rather what I should research and look into. I would appreciate any and all help :)
Best two resources to get started with Ruby on Rails. Start with the first link and use the second to reference.
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
http://guides.rubyonrails.org/getting_started.html
Looking at the desired app, and given that it's for learning purposes, I'd suggest to pick Sinatra + ERB/Haml + MySQL/PostgreSQL since it's lighter, extremely easy and quick to learn. Once you are comfortable with it, you'll easily be able to move to a more complex framework like RoR.
Some resources to start off:
http://www.sinatrarb.com/intro.html
http://testerstories.com/building-simple-web-apps-with-ruby-part-1/
http://samuelstern.wordpress.com/2012/11/28/making-a-simple-database-driven-website-with-sinatra-and-heroku/
http://matt.weppler.me/2013/07/19/lets-build-a-sinatra-app.html
If you don't want to get into the complexity of a database, you could even do away with storing your details in yaml file(s). Hope this gets you started.

Where to begin when developing a Rails app [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am a beginner at web development and wanted to know where to begin when developing a web application. More specifically I am using RoR and wanted to know is there a particular stack developers start with for instance would it be better to start developing models or views? Or do I have the wrong approach all together.
This will guide you through installation and 'hello world' in rails.
http://guides.rubyonrails.org/getting_started.html
And I highly recommend this book, if you are serious about rails. Finish it completely. It would give you insights which might take months to comprehend if you are searching only in web.
Book link: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
Rails sort of has two "default" stacks, as this blog post helpfully explains:
http://words.steveklabnik.com/rails-has-two-default-stacks
You'll see that mr. Klabnik also has some thoughts about the difficulty this creates for new developers. I'd recommend not worrying too much about all the different tools that are available to you at first. Wait until you have a problem or are experiencing some pain and then find a tool to solve that problem. Before that, just jump in and learn as you go. Or at least, that's how I'd approach it, but people learn differently!

Resources