To work in development mode, Apache isn't needed. Just run the Rails server:
$ rails s
Then your browser finds it:
http://192.168.1.51:3000/blog
Sent from my iPhone
> On Aug 4, 2014, at 6:22 PM, McHenry wrote:
>
> OK, I am lost...
>
> I have installed both Ruby & Rails.
>
> $ ruby -v
> ru
You need to install PhusionPassenger (or some other means of forwarding your
blog routes to the rails 'engine')
Apache does not - out of the box - know how to execute ruby scripts (Rails)
cheers
Walther
Den 05/08/2014 kl. 03.22 skrev McHenry :
> OK, I am lost...
>
> I have installed both Ruby
OK, I am lost...
I have installed both Ruby & Rails.
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
$ rails -v
Rails 4.1.4
I have created a new application and linked it to the document root:
rails new blog
me@server:/var/www/html$ ls -l
total 12
lrwxrwxrwx 1 root root16
You had right.
Thank you so much.
El miércoles, 7 de mayo de 2014 18:05:08 UTC+2, mike2r escribió:
>
>
>
> On Wednesday, May 7, 2014 5:47:38 AM UTC-4, Alfredo Barrero wrote:
>>
>> Please someone? I really need this. :(
>>
>> Regards.
>>
>> El martes, 6 de mayo de 2014 13:20:39 UTC+2, Alfredo B
Hello Alfredo,
Your button_to tag is creating the form on the page which is sending post
type request. When you are retrieving in controller action the request type
should be 'get'.
Please use link_to helper as follows:
= button_tag(link_to('Go to Gallery', loading_gallery_path, remote: true))
On Wednesday, May 7, 2014 5:47:38 AM UTC-4, Alfredo Barrero wrote:
>
> Please someone? I really need this. :(
>
> Regards.
>
> El martes, 6 de mayo de 2014 13:20:39 UTC+2, Alfredo Barrero escribió:
>>
>>
>>
>> El martes, 6 de mayo de 2014 13:19:30 UTC+2, Alfredo Barrero escribió:
>>>
>>> I'm hav
Please someone? I really need this. :(
Regards.
El martes, 6 de mayo de 2014 13:20:39 UTC+2, Alfredo Barrero escribió:
>
>
>
> El martes, 6 de mayo de 2014 13:19:30 UTC+2, Alfredo Barrero escribió:
>>
>> I'm having a new issue related with this. I have been searching the
>> reason of it but I c
El martes, 6 de mayo de 2014 13:19:30 UTC+2, Alfredo Barrero escribió:
>
> I'm having a new issue related with this. I have been searching the reason
> of it but I cannot fix it.
>
> I have this button:
>
> *<%= button_to 'Go to Gallery', loading_gallery_path,
> remote: tr
I'm having a new issue related with this. I have been searching the reason
of it but I cannot fix it.
I have this button:
*<%= button_to 'Go to Gallery', loading_gallery_path,
remote: true %>*
And this is the controller function:
*def galleryrespond_to do |for
I can't believe it , that was the error!. Thank you so much and sorry for
the newbie question... :(
El lunes, 5 de mayo de 2014 13:47:28 UTC+2, Walter Lee Davis escribió:
>
>
> On May 5, 2014, at 7:22 AM, Alfredo Barrero wrote:
>
> > Hello Lauree,
> >
> > I change the way to introduce Ajax on
On May 5, 2014, at 7:22 AM, Alfredo Barrero wrote:
> Hello Lauree,
>
> I change the way to introduce Ajax on the application, I'm following the
> "Agile Web development for Rails 4.0".
>
> This is the part of the part of the view related with the issue:
> <%= form_for(@comment) do |f| %>
>
I think the issue here is that you're trying to use coffeescript inside a
script tag.
My recommendation would be to put this inside a coffee file or translate to
plain javascript.
My best,
Ian
2014-05-04 3:24 GMT+09:00 Alfredo Barrero :
> Hi all,
>
> I'm starting with Ajax but I have a issue,
Hi all,
I'm starting with Ajax but I have a issue, should be a noobie issue but it
makes me crazy hehe. Could anyone tell me what's going on?.
I'm following this guide
http://guides.rubyonrails.org/working_with_javascript_in_rails.html, and
with the following code my application does not rec
On 30 December 2013 02:55, Joshua Kleckner
wrote:
> Hello. Brand new to Rails. Following along on the Getting Started guide,
> stuck on section 4.2 where upon entering:
>
> $ rails generate controller welcome index
>>
>
> I receive:
>
> Could not find generator controller
>
>
Which version of
Hello. Brand new to Rails. Following along on the Getting Started guide,
stuck on section 4.2 where upon entering:
$ rails generate controller welcome index
>
I receive:
Could not find generator controller
Everything seemed fine until this point. Any help is appreciated.
--
You recei
On 1 December 2013 22:54, Eric Blow wrote:
> Hi All,
> I am going through the getting started guide here
> http://guides.rubyonrails.org/getting_started.html
> And in section 5.7 it refers to a code snippet that I don't understand
> what to do with it.
>post GET/posts/:id(.:format)
On Sun, Dec 1, 2013 at 4:54 PM, Eric Blow wrote:
> Hi All,
> I am going through the getting started guide here
> http://guides.rubyonrails.org/getting_started.html
> And in section 5.7 it refers to a code snippet that I don't understand
> what to do with it.
> post GET/posts/:id(.:format)
Hi All,
I am going through the getting started guide here
http://guides.rubyonrails.org/getting_started.html
And in section 5.7 it refers to a code snippet that I don't understand what
to do with it.
post GET/posts/:id(.:format) posts#show
I don't understand if I am supposed to put th
On Sep 15, 2013, at 6:12 AM, Green Eco wrote:
> Hi,
>
> I am making the Ruby on Rails Getting Started Guide at:
> http://guides.rubyonrails.org/getting_started.html
> but I have one problem.
> Almost everything is well explained but at 5.7 and 5.8 there are two
> commands:
Hi,
I am making the Ruby on Rails Getting Started Guide at:
http://guides.rubyonrails.org/getting_started.html
but I have one problem.
Almost everything is well explained but at 5.7 and 5.8 there are two
commands:
post GET/posts/:id(.:format) posts#show
posts GET/posts(.:format
On 9 August 2013 22:32, Tamara Temple wrote:
>
> On Aug 9, 2013, at 11:30 AM, Jordon Bedwell wrote:
>
>> On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple
>> wrote:
>>> At this stage of the game, it's hard to hear "yer doin it rong" but
>>> something did go wrong. You should not have received tha
On Aug 9, 2013, at 11:30 AM, Jordon Bedwell wrote:
> On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple
> wrote:
>> At this stage of the game, it's hard to hear "yer doin it rong" but
>> something did go wrong. You should not have received that message if you
>> were following the getting starte
On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple wrote:
> At this stage of the game, it's hard to hear "yer doin it rong" but something
> did go wrong. You should not have received that message if you were following
> the getting started tutorial from the beginning. If you were doing other
> thin
On Aug 7, 2013, at 11:28 AM, Jenson Lu wrote:
> Hi people,
>
> I need some help here. I'm new to ROR, and is following the guideline on
> "Getting started with rails". The inputs have been accurate and are running
> well until section:
> "5.1 Laying down the ground word".
> While navigating
On 9 August 2013 11:38, Dheeraj Kumar wrote:
>
> Why don't you do what the error says?
>
> run "rake db:migrate RAILS_ENV=development"
Though you won't normally need RAILS_ENV=development as it should
default to that. First have a look in db/migrate and see if you have
accidentally created a new
Why don't you do what the error says?
run "rake db:migrate RAILS_ENV=development"
--
Dheeraj Kumar
On Wednesday 7 August 2013 at 9:58 PM, Jenson Lu wrote:
> Hi people,
>
> I need some help here. I'm new to ROR, and is following the guideline on
> "Getting started with rails". The inputs ha
Hi people,
I need some help here. I'm new to ROR, and is following the guideline on
"Getting started with rails". The inputs have been accurate and are running
well until section:
"5.1 Laying down the ground word"*. *While navigating to
http://localhost:3000/posts/new the error message display
On May 5, 2013, at 12:15 PM, rihad wrote:
> Thanks, will do that for now. I just thought the guides hosted on
> rubyonrails.org were more "official" and up-to-date. Well, they
> weren't.
They are official for 3.2, which is "stable" until 4.0 clears release candidate
stage. I am glad to see you
On 4 May 2013 18:37, rihad wrote:
> Hi. I'm trying to run Getting started tutorial under Rails 4.0.0.beta1
> although it assumes it runs on Rails 3. I was able to get rid of all
> errors by wrapping post_params here and there, and installing
> protected_attributes Gem for attr_accessible to make s
Hi. I'm trying to run Getting started tutorial under Rails 4.0.0.beta1
although it assumes it runs on Rails 3. I was able to get rid of all
errors by wrapping post_params here and there, and installing
protected_attributes Gem for attr_accessible to make sense. Post/
comment CRUD works just fine, b
On Apr 9, 2013, at 11:04 AM, John Gagon wrote:
> So far I'm disappointed with what I see as red flags. I follow along what
> seems like foolproof instructions. I install everything, rails new
> /some/new/app cd to the directory and rails server and my worst fears
> cryptic useless stack tr
So far I'm disappointed with what I see as red flags. I follow along what
seems like foolproof instructions. I install everything, rails new
/some/new/app cd to the directory and rails server and my worst fears
cryptic useless stack trace...so I copy the top line, search for stuff on
this s
Because by default the show_path is used for a model if you hand it to the
link_to helper.
On Sat, Sep 22, 2012 at 1:19 PM, rabinprithvi <
rabindranath.prit...@gmail.com> wrote:
> I am new to rails.
>
> When I generate scaffold for products , in products/index.html i have this
> code
>
> Listing
I am new to rails.
When I generate scaffold for products , in products/index.html i have this
code
Listing users
Name
<% @users.each do |user| %>
<%=h user.name %>
<%= link_to 'Show', user %>
<%= link_to 'Edit', edit_user_path(user) %>
<%= link_to 'Destroy', user,
i think you just need exec $> bundle install
On Sat, Sep 1, 2012 at 6:22 PM, Colin Law wrote:
> On 30 August 2012 17:11, noodlecz wrote:
> > Hi
> > I m trying to do my first aplication in rails. I use oficial tutorial
> > http://guides.rubyonrails.cz/#hello-world-v-rails and I have a problem
>
On 30 August 2012 17:11, noodlecz wrote:
> Hi
> I m trying to do my first aplication in rails. I use oficial tutorial
> http://guides.rubyonrails.cz/#hello-world-v-rails and I have a problem with
> one of steps.
> When I executed $ rake db:create (or only rake), I got an erorr:
> Could not find co
Hi
I m trying to do my first aplication in rails. I use oficial tutorial
http://guides.rubyonrails.cz/#hello-world-v-rails and I have a problem with
one of steps.
When I executed *$ rake db:create* (or only *rake*), I got an erorr:
Could not find coffee-script-source-1.3.3 in any of the sources
On 22 August 2012 10:23, Bruce Whealton wrote:
> Hello all,
>I started trying to learn Ruby on Rails from a course on Lynda.com.
> Unfortunately, I got stuck early on after installing things. First, I got an
> error trying to install a first application called simple_cms. I read a bit
Hello all,
I started trying to learn Ruby on Rails from a course on Lynda.com.
Unfortunately, I got stuck early on after installing things. First, I got an
error trying to install a first application called simple_cms. I read a bit
about the error (after doing a web search) and found d
Hi all,
I'm trying to work out how to get started using some jQuery in my rails
app.
rails -v = 3.2.2
ruby -v = 1.9.3-p194
I'm only sporadically a web-developer, and still quite inexperienced
with jQuery especially, so I may be making an obvious mistake.
Essentially, I've done very little after
On 17 August 2011 17:45, Murtuza wrote:
> I am a newbie to Ruby on Rails.
> I created a new rails project, but when i go to that directory and do
> rails server to start the server, it asks me whether i want to
> overwrite config/initializations/session_store.rb
Which version of rails are you usi
Maybe your load paths aren't updated properly after Rails installation.
If 'rails server' is not working, then try 'ruby script/rails server'
Chirag
http://sumeruonrails.com
On Wed, Aug 17, 2011 at 10:15 PM, Murtuza wrote:
> I am a newbie to Ruby on Rails.
> I created a new rails project, bu
I am a newbie to Ruby on Rails.
I created a new rails project, but when i go to that directory and do
rails server to start the server, it asks me whether i want to
overwrite config/initializations/session_store.rb
Due to which I am unable to see the normal index.html, when I type
localhost:3000 o
On Mar 18, 2011, at 8:49 AM, Michael Pavling wrote:
Can anyone recall the name of
the one that puts everything in a Linux VM?
VirtualRails
That was it, thanks. I knew I saw it blip by on RubyFlow.
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on
On 18 March 2011 12:44, Walter Lee Davis wrote:
> Can anyone recall the name of
> the one that puts everything in a Linux VM?
VirtualRails
It's also worth looking at the Bitnami Rubystack
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
On Mar 17, 2011, at 7:55 PM, Norm Scherer wrote:
On 03/16/2011 01:37 PM, Walter Lee Davis wrote:
I've heard very good things about Instant Rails on Windows. I
believe it sets up a Linux VM and installs all the tools. This
makes it trivial to have a working environment that's closer to
what
On 03/16/2011 01:37 PM, Walter Lee Davis wrote:
I've heard very good things about Instant Rails on Windows. I believe
it sets up a Linux VM and installs all the tools. This makes it
trivial to have a working environment that's closer to what you'll
really be hosting on, so it removes some layer
The code looks right.
Make sure you don't have class Post defined somewhere else (like
post.last.rb).
Also, make sure you restart the console each time you make changes to
the Post class.
Don't do a reload on the post class from inside the console as this
doesn't work with ActiveRecord last I ch
I've heard very good things about Instant Rails on Windows. I believe
it sets up a Linux VM and installs all the tools. This makes it
trivial to have a working environment that's closer to what you'll
really be hosting on, so it removes some layers of abstraction and
translation.
Walter
On Wed, Mar 16, 2011 at 1:30 PM, Jason Clark
wrote:
> All -
>
> Let me preface this with saying that I'm very much new to Ruby on
> Rails.
>
> At the time of this post, available versions are:
>
> - Ruby 1.9.2
> - Gems 1.6.2
> - Rails 3.0.5
>
> I'm trying to set up several working environments
I'll second that you're likely to find more help on a non-Windows
system just because there are more people here with experience on Mac
and Linux.
I also second getting RVM for managing Ruby.
And before you get to an IDE, I would use the command line to make
sure you've got your environment corre
On Wed, Mar 16, 2011 at 1:30 PM, Jason Clark
wrote:
> All -
> I'm trying to set up several working environments in order of
> priority:
>
> 1) Testing/Learning environment on my system (Windows 7, 64-bit)
>
Start by setting up rvm so if you need multiple versions of rails, gems and
ruby (you wil
On Wed, Mar 16, 2011 at 11:30 AM, Jason Clark
wrote:
> All -
>
> Let me preface this with saying that I'm very much new to Ruby on
> Rails.
>
> At the time of this post, available versions are:
>
> - Ruby 1.9.2
> - Gems 1.6.2
> - Rails 3.0.5
>
> I'm trying to set up several working environments
All -
Let me preface this with saying that I'm very much new to Ruby on
Rails.
At the time of this post, available versions are:
- Ruby 1.9.2
- Gems 1.6.2
- Rails 3.0.5
I'm trying to set up several working environments in order of
priority:
1) Testing/Learning environment on my system (Win
Hi everyone,
im pretty new to ruby/rails and have an issue with the getting started
tutorial on
http://guides.rubyonrails.org/getting_started.html
The model should be extended by this:
class Post < ActiveRecord::Base
validates :name, :presence => true
validates :title, :presence => true,
Hello;
I have begun the "Getting Started with Rails" guide at
http://guides.rubyonrails.org/getting_started.html
which is supposed to create a simple blog.
I execute the command "rails blog -d postgresql" without incident.
I am having trouble with the next command in the tutorial:
"rake db:creat
On Mon, Aug 16, 2010 at 9:27 PM, Rich d wrote:
> I am running Linux Mint with virtual machine and virtual rails
> installed on my laptop...I am barely learning ruby on rails and still
> a novice...now that I have virtual rails installed I am assuming I use
> the netbeans IDE 6.8 for building appli
I am running Linux Mint with virtual machine and virtual rails
installed on my laptop...I am barely learning ruby on rails and still
a novice...now that I have virtual rails installed I am assuming I use
the netbeans IDE 6.8 for building applications and embedding ruby
code. is this correct? I wa
This is normal behavior
With the ruby script/server command you actually started a web server process.
Now that process is holding your console (the Windows 7 cmd)
So you should start a new console and you can type all others commands. In the
first console, you can watch the result of the server o
Hello, I bought a book called "Head First Rails" and it's great,
starting off with giving me a few commands to instantly begin diving
into learning Rails. However, I ran into a problem that I'm not quite
sure how to fix.
So I'm following along the beginning exercise where I did the
following comma
As of this writing:
The Getting Started guide (http://guides.rails.info/
getting_started.html) was recently re-written to reflect recent
features in Rails 3.0. But the instructions it gives for downloading
rails in section 3.1 ("gem install rails") fetches rails 2.3.8, which
won't work for the gi
emacs is hardcore! I recently moved to a Mac and decided to go for it and buy
TextMate -- gotta say I love it.
Steven Elliott Jr
On Nov 18, 2009, at 2:56 PM, Darian Shimy wrote:
> Steven, I second that! I've never needed anything more than TextMate or
> emacs.
>
>
>
> On Wed, Nov 18, 2009
Steven, I second that! I've never needed anything more than TextMate or emacs.
On Wed, Nov 18, 2009 at 11:08 AM, Steven Elliott Jr
wrote:
> ya, learn how to use Rails from a text editor and command line -- the IDE's
> are bloated and do nothing but confuse and abstract you from the development
ya, learn how to use Rails from a text editor and command line -- the IDE's are
bloated and do nothing but confuse and abstract you from the development
process... imho
Steven Elliott Jr
On Nov 18, 2009, at 1:55 PM, Alex wrote:
> Darian,
>
> I couldn't agree more :)
> This is a project that
I think that you want to look at /public/index.html after you boot up the
server. However, check routes.rb in the config directory to see if they
specified a new starting point.
something like map.root :controller => 'something', :action => 'index'
and i'd have to agree with Darian -- if you do
On Wed, Nov 18, 2009 at 10:55 AM, Alex wrote:
> I'm excited to learn and am facing a frightening learning curve.
...
> I'm literally *just* starting the process, and am looking for
> resources and help as to how to get going.
I would strongly suggest the way to start would be to (1) forget
about
Darian,
I couldn't agree more :)
This is a project that basically fell into my lap.
Someone asked me (knowing that I have done sites with html/css) to
"fix" their web site.
It was only after getting under the hood that I realized that it was
done in a completely foreign architecture (to me).
I'm t
If you are having that much trouble starting the application, what
makes you think you are going to be able to resolve problems. In most
cases, the app runs on port 3000. You can try http://localhost:3000/
Darian Shimy
--
http://www.darianshimy.com
http://twitter.com/dshimy
On Wed, Nov 18, 20
Am new to ruby on rails.
I'm helping troubleshoot a web site written in ruby on rails.
I've ftp'd the site to my local machine.
And I'm trying to run it in "aptana rad rails" to emulate the browsing
experience and find out where the site is crashing.
What is the equivalent of the "index.html" file
I am just getting started with Rake. I am trying to create a rake task
from within a rails plugin to copy some asset files (inside /assets in
my plugin folder) to my rails application /public folder.
How can I achieve this?
I am not sure whether to use FileUtils or File. Where AM I in rake
terms.
Hi All,
I'm following the guidance in
http://lcd.weblog.glam.ac.uk/2009/2/16/cucumber-tutorial-ruby-on-rails.
Everything worked fine through the command "Ruby Script/Generate
cucumber mate .",
including starting the app at "http://localhost:3000/";, which yielded
the standard "Welcome aboard" p
Here is a guest post on Engine Yard's blog from Charlie Nutter of the
JRuby team on getting starting with JRuby - http://bit.ly/G4KZp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To po
Hey everyone... I'm just getting my feet wet with relational databases
using RoR models. The software I'm putting together relies on car
parts. Originally I had the database set up as follows
create_table :parts do |t|
t.column :year, :string
t.column :make, :string
t.column :model, :stri
Hi,
Thanks for a wonderful Getting Started with Rails. I am up to the last
section and just added the comments part.
So while testing and looking over comments_controller.rb;
I see the reference to post_comment_url calll where is this defined.
Below is the message I am getting.
Thanks
ActionContr
Experienced developer here just attacking Ruby on Rails.
So, I bought myself a book (Beginning Ruby on Rails - Holzner) and
proceeded to follow the tutorial for the first project. I start up
Webrick which seems to be working properly. Then, after
editing/creating the two simple files per the i
I was working with:
The Rails Cookbook
A Ruby on Rails Crash Course
Brian Hogan
http://www.napcs.com/resources/rails/cookbook/rails_cookbook.pdf
page 5
And I did this:
C:\ruby>gem install sqlite3-ruby
And I got this:
Building native extensions. This could take a while...
ERROR: Error inst
I’m very interested in starting with ROR, however I do not know where
to start, I’ve a background as a developer of desktop application, the
web is new to me, there seems to be a lot of things to master in order
to become an efficient ROR developer, So I’m a bit confuse on what
should I learn firs
77 matches
Mail list logo