Displaying 6 results from an estimated 6 matches for "sampleapp".
Did you mean:
sample_app
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
Hello,
I am configuring apache 2.2 to serve my rails app through passenger.
First, I redirect all http traffic to https with the following:
This is my web server apache conf file.
ServerName sampleapp
NameVirtualHost *:80
<VirtualHost *:80>
Options FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>
Inside the <VirtualHost *:443> section, I have the following
configuration, which s...
2011 Feb 05
1
ActionMailer::Base.default_url_options
...gems/ruby-1.9.2-p136/gems/actionmailer-3.0.3/lib/action_mailer/base.rb:333:in
`<module:ActionMailer>''
from
/Users/sebastian/.rvm/gems/ruby-1.9.2-p136/gems/actionmailer-3.0.3/lib/action_mailer/base.rb:9:in
`<top (required)>''
from
/Users/sebastian/Sites/rails/sampleapp/app/mailers/contact_mailer.rb:1:in
`<top (required)>''
from
/Users/sebastian/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require''
from
/Users/sebastian/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_...
2010 Jun 25
5
Error installing gems for Rails 3.0.0.beta4 on MacOSx
...nd below:
sudo gem install rails --pre
I manage to install 3.0.0.beta4 in my machine but when I start creating
a rails3sample application and run a rake db:migrate for default SQLite3
database. It didn''t work out ... (any help needed on this) ERROR
below.
(in /Users/andre/Desktop/Andre/sampleapps/rails3sample)
rake aborted!
spec sqlite3-ruby-1.3.0 is not from an installed gem
/Users/andre/Desktop/Andre/sampleapps/rails3sample/Rakefile:4
(See full trace by running task with --trace)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the G...
2006 Jul 05
10
rake migrate RAILS_ENV="production"
...up with correct MySQL permissions granted and the
database.yml is pointing at it. I get no errors when I run it, but
equally my production database does not change at all. When I run the
comment I just get this:
dave$ rake migrate RAILS_ENV="production"
(in /Users/dave/Sites/sampleapp)
dave$
What am I doing wrong?
--
Posted via http://www.ruby-forum.com/.
2011 Jul 28
2
rails 3 routing error
...s_controller_spec.rb:13:in `block (3
levels) in <top (required)>''
Finished in 0.08406 seconds
2 examples, 2 failures
controllers/sessions_controller.rb:
class SessionsController < ApplicationController
def new
@title = "Sign in"
end
end
config/routes.rb:
SampleApp::Application.routes.draw do
#get "sessions/new"
resources :users
resources :sessions, :only => [:new, :create, :destory]
#get "users/new"
match ''/signup'', :to => ''users#new''
match ''/signin'', :to => '...
2011 Nov 12
4
No route matches [GET] "/microposts/304"
...ect_to root_path
else
@feed_items = []
render ''pages/home''
end
end
def destroy
@micropost.destroy
redirect_back_or root_path
end
private
def authorized_user
@micropost = current_user.microposts.find(params[:id])
rescue
redirect_to root_path
end
end
and finally, the route is..
SampleApp::Application.routes.draw do
resources :users
resources :sessions, :only => [:new, :create, :destroy]
resources :microposts, :only => [:create, :destroy]
match ''/signup'', :to => ''users#new''
match ''/signin'', :to => '...