What to do after starting a rails server on localhost:3000? - ruby-on-rails

I am new to rails. I have followed instructions and setup a rails server. I have an application on my computer. I have started localhost:3000 and I don't know what to do next step.
I did try a few other solutions, but nothing explains the next step.
Thank you

Due to the vague question and i am not allowed to comment you to ask question, thanks to #StackoverflowTeam.
Some suggestion when i learn Ruby on Rails, since your application is up,
You should learn to create a Model(a table in the DB).
Create a Controller to handle HTTP requests
Learn about the app/config/routes.rb to handle customise url map to controller_name:action_name.
Okey, good for you to start.
I have found this free videos interesting, hope you like it codeschool ruby on rails

Related

Can I use my web server to host my rails application?

I have now build my first Ruby on Rails site and I want to publish/deploy/show it to the world on internet. I have access to space on a web server trough a university that I am associated with. But after some searching I realized that publishing a Rails site is slightly more complicated than publishing a regular html production.
Is there any way to use the space I have? How can I know if the server I have access to is up for the task? Is there any guides on how to do this via SSH or git or whatever? I have search a lot but not found anything useful. It doesn't have to be easy, I just have to work. And it's good if I can learn and understand what I am doing.
I have tried quite extensively to make it work with Heroku (everybody claims it to be so easy) but failed since it will not accept my push. Probably because I use Rails 4.2.2 (I don't want to change this, too many things stopped working when I tried to update) and Paperclip which seems to be known issues.
Please, I'm getting desperate, any help pointing in the right direction is very appreciated.

Tracking users in Rails 4 - Sessions, cookies, encrypted cookies?! Need a simple authentication guide

I am new to Rails and I tried the following tutorial Railscast 270 Basic Authentication.
However, somehow I get an error because rails does not find the 'session'. Somewhere I read I dont have to manually generate a model/table for it?
So now I read that active record sessionstore has been deprecated and/or gemified? What I want is a simple registration/login/logout mechanism to start with but I wanna do it 'the right way' avoiding old and deprecated stuff.
Can someone guide me or link me to a tutorial which is still valid?
Thank you
There are loads here you can watch: http://railscasts.com/episodes?utf8=%E2%9C%93&search=authentication
I'd personally recommend following this specific one, although it may require a paid account:
http://railscasts.com/episodes/250-authentication-from-scratch-revised
If you aren't willing to pay a little money, then starting with this one wouldn't be too bad either:
http://railscasts.com/episodes/270-authentication-in-rails-3-1
It says it's for Rails 3.1, but it'll work in 4 without much (if any) additional effort.
Hartl's Rails Tutorial (updated for Rails 4) has a very clear explanation of setting up your own authentication system from scratch: http://ruby.railstutorial.org/chapters/sign-in-sign-out#sec-signin_failure
If you're new to Rails, it's definitely not a conceptual walk in the park. I urge you to sit down and really think about what every single line of code is doing - you could get away with copy/pasting huge parts of code to implement your authentication system, but at that point you might as well use a gem like Devise to do it for you.

Implementing reCaptcha into a Rails 2.3.12 app

I need to implement reCaptcha into a Rails app form for my internship. Unfortunately I am still taking my Web Programming classes and haven't gotten into any server side lessons yet, so I am still a complete noob when it comes to submitting forms and sending requests to servers, let alone not using RoR before I started the internship. I have been trying to find a tutorial to follow, but all that I've found assume more experience with web development.
I have the public/private keys from the site and have installed the plugin, but am completely lost now. Obviously I don't want someone to just tell me what I should code, but if someone could tell me where I need to go after this that would be fantastic. I know that I need to add <%= recaptcha_tags %> where I want reCaptcha to appear, but I haven't been able to find anything pertaining to what I need to code for the helpers or what kind of JavaScript I need to implement. I know I need to do some AJAX calls, but again, NO idea what to do or where to start.
Any tips, pointers or references to tutorials would be fantastical and I would love you forever and a day. Thanks!
look here
https://developers.google.com/recaptcha/docs/customization
http://hwork.org/2009/03/08/recaptcha-on-rails/
http://blog.ncodedevlabs.com/2010/01/26/implementing-recaptcha-in-your-rails-app/
or the best place :
http://google.com

How do I develop a web page that returns password for users to register?

I am doing a project on creating a lab application for a next generation sequencing data using ruby on rails.
The main idea my boss suggests me to do is to have users fill in their details and submit to us. After the submission, the administrator, i.e. me, would send them a password which they can use to login my application. could some one help me with the idea of development. I am naive to ruby on rails and would be very grateful for people who help me.
thank you and cheers
I would start with Michael Hartl's RailsTutorial. Not only did I find it the best way to get started - the application he builds includes a bombproof user security model, just as you require, and so you'd be both learning and developing something relevant at the same time.
I'd also recommend buying the videos, as well as the book. They make all the difference.
Are you new to the whole web development thing or is it just Ruby on rails that you have no knowledge of?
If the former, I'd suggest googling some Ruby tutorials on how to make a simple web application and build from there. Start by a simple "Hello world" application, then proceed to handle submitted forms, then install and use a database and by then you should have the basic knowledge to build what you want.
If the latter, could you specify, what parts you need help with? Ruby is syntactically quite easy to learn if you just take a look at some tutorials, so that shouldn't pose any problems. You have described a simple use case which I'm sure you can handle in a new environment, if you just have the patience to try and learn.

Rails mail tutorial, along with the required settings

I'm new to RoR, writing a simple app. Need to implement mail functionality the usual register/forgot password stuff. I have googled, but haven't got a complete tutorial yet. Most of the tutorials teach how to send mail, but don't help out with the settings. can someone suggest a good tutorial, complete with settings?
I'm on ubuntu 9.04, would like to use my dev box as the server.
I'm just starting using Ruby on Rails and am using Ubuntu too.
From my research, I've found http://modrails.com/ is the best solution to host rails on ubuntu / apache. Their documentation is great to get the server up and running.
From there, I've found the best Rails Tutorial is the official ones, which can be found at http://guides.rubyonrails.org/.
A good way to also start learning stuff is to look at source code of other apps, some of which can be found at http://opensourcerails.com/.

Resources