How to publish and implement Ruby file to my website [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 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.

Related

Reusing code from Hartl Rails Tutorial [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 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.

(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.

Need to know about CMS [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
In Ruby On Rails which CMS gem support the more powerful features and fully customizable functionality.
I need to create an application that have an admin that create,update and edit, delete the pages.
And wants to use customizable CSS and additional functions like i can add inside application.
For e.g Count likes of an artical on page and sharing the page on facebook.
Your help and suggestions are definably appropriate.
Thanks for Help.
From my own experience I can recommend Refinery CMS which will fulfill most of your requirements. You can fully customize the CSS and it allows you to add Rails Engines to it on the one hand, but it can also be added to an existing application as a gem. You will have to do some work to get your counts and your Facebook sharing though.
I also once heard a talk from the creator of Locomotive CMS which at first sight seems somewhat more flexible, but you will need to invest some more time to get you started. It allows transferring a running site from development to production through a companion app whereas you have to develop your content "online" with Refinery CMS.
I guess your choice will be a matter of taste. There is of course a host of other possibilities listed in the Ruby Toolbox
To give some perspective, we recently created our own CMS from sratch
It's very simple to do - there are several tutorials online which explain the process
Basically, you need:
Models - Post, User, Option
Controllers - posts, application, users, admin: [application, posts]
Views - application(index), posts, admin: [application(index), posts]
Here are some resources:
http://therailworld.com/posts/12-How-to-Create-a-Blog-from-Scratch-Using-Ruby-on-Rails
http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/
http://railscasts.com/episodes/310-getting-started-with-rails?view=comments
http://guides.rubyonrails.org/getting_started.html

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.

How to create an app with User Profiles like Facebook, Instagram, etc [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
Hi there I was wondering how it would be possible to make a app like Facebook, or Instagram or other Social Network apps where users can login view their profiles and other peoples profiles. I was wondering if anybody would know what programming language I have to know or if I have to have servers. Any help would be greatly appreciated. Thanks in advance.
Welcome to the site!
This question is asking for a lot and not really really appropriate for this site, but how about some good starting points?
Building apps like facebook, instragram, etc are very difficult. Fortunately there are many great tools to help with this, like Ruby on Rails, Play, Django, etc.
There are many programing languages you can use to build an app like this. PHP, Ruby, Python, Java, Clojure, etc. You can even make a website in pure assembly if you want to.
Servers and database knowledge are required to get started as well.
Fear not, for we all have to start somewhere.
Here's some steps I recommend you take:
Learn how to make a website with HTML and CSS.
Learn some javascript, and understand how programming is dynamic.
Try languages like Ruby or Python, and learn about the power they bring.
Learn a web framework in the language you preferred with from suggestion 3. Rails and Django are two major frameworks used today, both have clear getting started tutorials.
Try grabbing an account at Codecademy or CodeSchool. They both have amazing step-by-step guides to help you get started with the right knowledge.
Build your app with profiles, etc.
Build a mobile app around your web-service if you'd like.
In summary, it's all about patience, determination, taking on new levels of complexity at the right time and of course, the amazing feeling when all your hard work pays off and your app works!
Good luck!

Resources