Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

deployment - deploy rails app on heroku -


hey i'm afraid should ask rookie question :

after push app heroku. got error of no database

this command use

heroku rake db:migrate

my app can run locally no problem, notice database file in development. , test evironment use rails server , localhost:3000

anyone tell me how make database in production mode in heroku.

thanks

here's heroku log file:

here's logs

started "/drummers/1" 221.9.247.14 @ sat dec 18 06:17:40 -0800 2010 processing drummerscontroller#show html parameters: {"id"=>"1"} completed in 167ms

activerecord::recordnotfound (couldn't find drummer id=1): app/controllers/drummers_controller.rb:11:in `show'

i think may due datebase,config file, become use sqlite3 in local test, , migration file development prefix,

it's not telling you have no database.

it's telling can't find specific record

(couldn't find drummer id=1):  

it's have code that's doing drummer.find(1) , doesn't exist on production environment.

recommend either:

  • create seeds file (heroku rake db:seed) rails cast
  • push entire database heroku (heroku db:push) [make sure understand wipe out production database]

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -