Displaying 20 results from an estimated 27 matches for "protoseinc".
2006 Feb 14
8
Best Practices For back/cancel/return button
Are there any best practices for implementing a back/cancel/return
button... even when the page you want to return people too is 2 pages
back (when people submit form and then want to return)?
Thanks :-)
Your Friend,
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
2006 Mar 21
3
Migration Rollbacks
Another question about migrations.
When I type:
===========
rake migration VERSION=1
===========
The value in the schema table change to ''1'' but none of the down
commands are issued to drop the respective tables. Am I doing
something wrong here?
Thanks :-)
John Kopanas
2006 Feb 12
5
Passing Multiple Values In URL
Been a while since I programmed in Ruby and Rails and some of the
basic concepts I just loose so quickly. This one I can''t find any
examples of.
I want to pass two pieces of information in my URL. The :id plus I
want to pass my user_id. How do I pass it using the link_to?
Stupid question I know... but I can''t find the answer.
John Kopanas
http://www.kopanas.com
2006 Feb 13
2
Overriding the error_messages_for method
If I wanted to override the error_messages_for method where within
the rails structure would I put it? Which file?
Thanks :-)
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference
2006 Feb 15
2
Ruby 1.8.2 work with Edge Rails
Does ruby 1.8.2 of ruby work with edge rails or do I need to upgrade?
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference
2006 Feb 17
2
acts_as_versioned and acts_as_taggable on same model?
I am trying to use acts_as_versioned and acts_as_taggable (plugin) on
the exact same model. Has anyone successfuly done this? I think
what I need to do is make model_versions acts_as_taggable instead of
my main model. Anyone have any other suggestions or any suggestions
how to do this?
Your Friend,
John Kopanas
http://www.kopanas.com
2006 Mar 21
2
Migration ~ Create
In one of my migration files I have the following:
===========
def self.up
User.create :name => ''John Kopanas'', :email =>
''john@kopanas.com'', :password => ''test''
end
===========
When I run it I get the following error:
===========
undefined method `create'' for
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals,
I have the following object that has acts_as_versioned:
class Note < ActiveRecord::Base
acts_as_versioned
belongs_to :user
end
The schema for my notes table is as follows:
create_table :notes, :force => true do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :user_id, :integer
t.column :title, :string
2006 Feb 17
3
Accessing Yahoo!, Hotmail and Gmail address book?
Just wondering if any one has been able to come up with a solution to access Hotmail / Gmail / Yahoo address books via their ROR app?
Thanks for any tips/guidance you can provide.
Frank
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it''s free and works with Yahoo! Mail.
-------------- next part --------------
An HTML
2006 Feb 14
1
Additional Model Validation
I created a method to do additional validation on my model. How can
I have that run whenever a model is being saved? (For now I don''t
want to extend AR.)
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info -
2006 Feb 15
8
[OT] I user CocoaMySQL... anyone have any other preferences for MacOS X?
Looking for a quality alternative... if there is one :-).
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference
2006 Feb 14
6
Creating a String of Random Characters and Numbers
I want to create a random string of length n that is made up of
characters and integers. Is there a function in rails or ruby that
allows me to do this?
Thank you my friend :-).
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
2006 Feb 17
3
Migration Errors?
Hi there,
I just bought the Rails Recipes and PDF preview of the book. So far
it''s excellent. I decided to try Chapter 8 of the book regarding
tagging.
I''ve done migrations before, and I feel comfortable with them, however
this error stumps me.
--------------------------------------------------
antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book.
The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application.
For instance, it will be great to see how one can implement the typo blog
2006 Mar 20
2
Testing Models And Fixtures
I have finally decided to look into testing and I am going through
the examples in the AWDWR book and I tried the following and it does
not work... even though I don''t see why it shouldn''t.
===========
posts.yml
===========
basic_post:
id: 1
title: Title
body: Body
created_at: 2006-02-01 00:00:00
updated_at: 2006_02-02 00:00:00
2006 Mar 21
2
Capistrano: creating your own tasks
When I create a task within capistrano.rb I can call it using rake.
When I create a task and put it in deploy.rb I can call it. Neither
with or without the remote: namespace.
Anyone have any insight into why it does not work?
John Kopanas
2006 Mar 22
1
Capistrano - run command
Man, I can''t wait to get my hands on the capistrano book when it
comes out :-).
I have the following task in capistrano.rake (any task in deploy.rb
just does not want to be called)
=========
desc "Restarts the lighttpd server"
task :restart_server do
run "/users/home/jkopanas/bin/lighttpdctrl restart"
end
=========
When I run rake restart_server I get the
2006 Feb 11
1
Singularize and Pluralize of the word Faculty
I am have problems with one of my model''s call Faculty... my models
name is Faculty so the database should be called faculties right?
Has there been documented problems with words ending in ''y''?
Thanks for your help.
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the
2006 Feb 12
2
Using Random Longer Non-Sequential IDs
Instead of using sequential integers for IDs for my objects I was
wondering if I could easily make it so that my IDs where longer auto-
generated random strings/integers.
So instead of:
http://www.mydomain.com/user/view/1
Would be:
http://www.mydomain.com/user/view/d81096b87a7c5565f
On top of that... is there big benefits for security reasons to use
non-sequential numbers? Is it worth
2006 Feb 14
0
Edge Rails and Not Working So Consistently
I just started using edge rails and I wanted to know if it was just
me or others are having the same problem.
With edge rails I am getting a lot of uninitialized constat [Model
Name] -> where Model Name changes depending on which model I am
accessing. If I hit refresh it sometimes works but not often. Do I
have to make a change when I use edge rails?
John Kopanas