search for: photoscontrol

Displaying 7 results from an estimated 7 matches for "photoscontrol".

2005 Sep 19
2
warning: already initialized constant
...erates 2 warnings: /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/ dependencies.rb:99: warning: already initialized constant ApplicationController /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/ dependencies.rb:99: warning: already initialized constant PhotosController What would cause this? Not specifically, of course, but in a general sense. => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-09-19 11:33:13] INFO WEBrick 1.3.1 [2005-09-19 11:33:13] INFO ruby 1.8.2 (2004-12-25) [powe...
2008 Sep 18
2
Setting up Fleximage
...my next step should be. If anyone could point me in the right direction, I''d appreciate it. :) Model (photo.rb) class Photo < ActiveRecord::Base acts_as_fleximage :image_directory => ''public/images/uploaded_photos'' end Controller (photos_controller.rb) class PhotosController < ApplicationController def new end def create @photo = Photo.new(params[:photo]) if @photo.save redirect_to photo_url(@photo) else flash[:notice] = ''Your photo did not pass validation!'' render :action => ''new'' end end end View (...
2009 Feb 22
2
Mysql error unknown column 'columns.user_id'
Had this error when trying to add comments to another user''s photo. ActiveRecord::StatementInvalid in User photosController#show Mysql::Error: Unknown column ''comments.user_id'' in ''on clause'': SELECT photos.`id` AS t0_r0, photos.`user_id` AS t0_r1, photos.`title` AS t0_r2, photos.`body` AS t0_r3, photos.`created_at` AS t0.... I did create a user_id column in the comments as such:...
2007 Aug 15
0
Rails error on generated app
...# edit the migration file to create the empty table * rake migrate * # checked the database and "photos" table looks correct * script/generate scaffold photos photos * script.server Now comes the weird part when I go to: locahost:3000/photos I get this error message: NameError in PhotosController#index uninitialized constant Photo RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t...
2007 Nov 06
3
Urgent!!!! responds_to_parent error
...''uploadPhotoForm'' else page.alert "Photo upload didn''t work! Sorry!" end end end end end Error en log ------------- NoMethodError (undefined method `responds_to_parent'' for #<PhotosController:0x48b4454>): I have not copied installed, pq not found to install the vendor/plugins/responds_to_parent and vendor/plugins/remote_upload I have included this js ----------------------- <script type="text/javascript" src="/javascripts/prototype.js?1194344831"> <...
2011 Aug 27
5
image override*
Hi Team, I have create one ruby on rails application ,i have one issue for that image upload ,the image will override the some user , so any can solve the issues ************************ contoller class PhotosController < ApplicationController # GET /photos # GET /photos.xml def index @photos = Photo.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @photos } end end # GET /photos/1 # GET /photos/1.xml def show @photo = Photo.f...
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to your models." (http://rspec.rubyforge.org/documentation/rails/writing/views.html