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 8 years ago.
Improve this question
I am curious how it works inside a web framework. how to develop with Ruby, I wonder what is the basic need to develop a web framework with ruby
The ability to respond to HTTP requests.
A 70-line, simplistic (but threaded, with some content type handling) server:
http://blogs.msdn.com/b/abhinaba/archive/2005/10/14/474841.aspx
Everything else is sugar. The ability to easily map URLs to handlers is an implementation detail. Getting data to the view layer (assuming the view layer isn't just Ruby, a la Markaby) is an implementation detail.
Everything you see in Rails, Sinatra, etc. are implementation details designed specifically to make developing apps easier, normalized, consistent, etc.
Related
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 4 years ago.
Improve this question
It is a very simple game, only consisting of about 80 lines of code, and 2 images. I am a new developer, so pardon my ignorance.
I uploaded the three files to a domain, but when I visit the location, it just downloads the file.
What do I need to do in order to have the file be executed opposed to just downloaded? What other information is relevant to running it as a 'web app'?
Thanks
If you're written a console application (which it sounds like you have) then you will not be able to run it on the web. Depending on what you've made you may be able to translate it into a web application using a Ruby web framework like Ruby on Rails or Sinatra. If you link to your GitHub or wherever the code is you may be able to get more specific advice.
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 6 years ago.
Improve this question
I know this is the kind of question that usually gets deleted, but I have to find some answers. I want to build a project in a new technology more suitable to hosting on a Linux server, but I like the way things are done in ASP.NET MVC. I've looked at Rails a bit but I've heard that Rails performs and scales poorly. Any suggestions appreciated.
Ruby on Rails doesn't scale well, but depending on your needs you may never have to worry about it.
My guess is you'd be most comfortable with something like CakePHP or just PHP and whatever MVC framework. It's pretty C# like, and it's FAST!
Python/Django is also a good choice. (My personal favorite)
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
I already have a fair bit of experience making rails applications, but I have never really tried to make an application with the use of a microphone. I don’t need to have video call, only voice, but I would want to control how many people could connect to a single call. Also I would like it to not have to do with actual phone numbers, but have a completely separate service like skype. Any help would be appreciated, Thanks!
This is not a trivial rails app, but just from googling I found Adhearsion
Check it out: http://www.adhearsion.com/
Adhearsion is a full-featured framework for the development of
applications which interact with or control voice communications.
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
Since most mobile apps need to communicate with server, thus they need handle http request in the app. My question is that, is it better to put all requests in one controller or separate to different controller?
For example, I have a SignInViewController and ContactsViewController. Both of them need to get some data or post some data to server. I can either handle requests in each ViewControllers, or put them in one ServerController. Which is better or standard way?
Thanks
I would and have used a separate object similar to what you describe as the ServerController. It depends on the situation but I have found these are easier to work with if they are not singletons so that you can manage state, progress, etc. of each of your HTTP requests independently.
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 7 years ago.
Improve this question
While I see the relevance of "web" in the phrase "web stack," I'm left wondering what "stack" refers to in this context.
It refers to the components or technologies/languages/operating sytems/etc used to build a web site. For instance the "LAMP" stack is: Linux, Apache, MySQL, PHP
"Stack" is slang used by programmers trying desperately to make the set of tools they use sound cool.
Stack is because the components pile up on top of each other
Your Application Presentation
Your Application Controls
Your Application Models
HTTP Server (Apache, IIS, etc.)
Database
Operating System
It's not strictly a stack (not like the OSI protocol stack). But it's approximately a stack.