search for: scottnj

Displaying 16 results from an estimated 16 matches for "scottnj".

2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
i have a rails app that tests fine with "rake spec" but gets a segmentation fault when "rake spec:rcov" is run. i am on windows xp, ruby 1.8.6, rails 2.1.1, mysql 5 my app is at http://github.com/scottnj/test_blog/tree/master so maybe someone can try to replicate my error so i know if the problem is with my code or something installed on my pc. here is a copy of my shell output >> rake spec:rcov --trace (in C:/Documents and Settings/Scott/My Documents/NetBeansProjects/ blog) ** Invoke spec...
2006 Jan 26
9
Problem with schema_db_import on Site5?
Hello, I am trying to put my rails app on a host .So I presume the method to do this is to first do rake db_schema_dump and then copy it to the host and do rake db_schema_import. I use mySQL Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline 4.3 ** Invoke db_schema_import (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db_schema_import rake
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out what the method in the controller should look like. I tried @user.save and @user.update_attributes, but can''t get it to work. My Form: ############################## <%= start_form_tag :action => "update_password", :id => @user.id %> <%= password_field ("user",
2006 May 09
7
polymorphic relation question
I am trying to get polymorphic relations to work for my app. What I am trying to do is explained by this picture http://iroll.org/code/ I can''t figure out the code for in the controller to create a new phone_number and assign it to a person. I have tried everything I can think of. A) do my models look correct? B) what would the commands look like in the console or a controller action
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated current_user in a model? Is there some sort of include or require I can do some where that would allow this? ********************************************************** Here is what I am trying to do: ********************************************************** class Setting < ActiveRecord::Base before_create :created_by_user #
2006 Feb 01
1
ActiveRecord::FileSystem???
Rails makes working with databases easy with ActiveRecord::Base. Has anyone written a rails system for working with files so we can do things like: class User < ActiveRecord::FileSystem root_directory "c:/uploads" file_permissions directory_permissions validates_filetype validates_filesize validates_filename before_save I know about file_column, but I don''t
2008 Oct 02
2
alternative to "script/plugin install -x" that works with git
I miss the svn:externals feature when installing plugins that are managed under git. the -x switch used to do this. I''ve released a gem called externals that manages subprojects in an scm agnostic way so that I can use an svn:externals-like workflow with git. It''s used like this: ext install git://github.com/rails/acts_as_list.git This accomplishes the same thing as:
2006 Feb 15
6
error_messages_for trouble
I am trying so learn how to do custom validations. The validation works as expected, but I can''t get "error_messages_for" to display. How is the name of the object supposed to be formated? Where is this object created, the model or controller? What am I doing wrong here? #### Model ######################## class MyFolder < ActiveRecord::Base def validate # validation
2006 Feb 05
0
is there an inverse of ''url_for''
What I want to do is take a url string (from a file,db,form field,...) and turn it into a hash. For example: string = ''proto://host.com/posts/show/10?user=joe'' url_to_hash(string) #=> {:controller => ''posts'', :action => ''show'', :id => 10, :user => ''joe''} Does rails have anything like this already built in,
2006 Feb 08
1
functional test problem
I am trying to write a test for my delete method. I find a User in the db by its id, do the delete action, then I want to see if it is still in the db. How do I check that the User IS Deleted without causing errors? ** My Test ******************************** def test_delete_user login user = User.find(2) post :delete_user, {:id => user.id} assert_equal "User
2006 Jan 29
0
File Upload and Security advice
I am going to have a file upload feature in my rails app. I know about file_column, I need something more custom. The server will be cgi/fcgi on apache on linux. The feature will be in a password protected area. I am going to use absolute file paths everywhere. Files will be stored outside of public_html. Files will be chmod as 600 (only read/write by owner) I will validate: file size
2008 Jul 10
0
install plugin from zip file
i have been trying to install the geokit plugin. for some reason script/plugin install svn://rubyforge.org/var/svn/geokit/trunk isn''t working for me. i downloaded it as a zip file from http://rubyforge.org/frs/?group_id=3031 but don''t know what to do now. i tried extracting it and typing "ruby script/plugin install c: \path_to_geokit_folder" from my rails app but that
2008 Nov 28
3
name space and before filter
is it possible to have a before filter apply to all controllers in a name space, or do you have to do it separate for each individual controller. for example, an admin name space with a require_admin before filter. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2008 Sep 12
1
restful_authentication rspec failures "Mysql::Error: Incorrect datetime value:"
I am getting 193 failures that all have "Mysql::Error: Incorrect datetime value:" how do i fix this??? i am new to rspec and restful_auth, so if i am doing something wrong, let me know!!! windows xp rails 2.1.1 rails testproject cd testproject # create my databases and edit database.yml git init git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins/ rspec git
2012 Feb 29
1
setting up a vps for rails: looking for advice, tutorials, etc.
i am trying to learn how to setup and maintain a vps for some rails apps. i have used shared and managed hosting but now i am looking for the freedom and flexibility a vps offers. i signed up with linode to give me something to play around with until i feel comfortable to deploy my live apps to a vps. i want to learn best practices and how to do things right. initially i plan on hosting only
2012 Mar 13
4
minitest validations - is there a cleaner way?
i am trying out minitest, but need some advice on a clean way to test validations. I setup my testing to use minitest by following the following railscast plus i added miniskirt for Factories. http://railscasts.com/episodes/327-minitest-with-rails everything works well, but there has to be a cleaner way of testing failed validations. would i be better off using something besides