Hello everyone
I am very much confused about specifying the relation in the following
one. I had Item, Invoice, Invoicedetail model.
Item table contains - id and name,unit_price fields.
Invoice table contains - id, invoice_number and date
Invoicedetails - invoice_id, item_id, quantity, unit_price
with rails 2.2.2 action mailer requires a valid ssl certificate
i have a question about routing
my smtp settings for my postfix are now
ActionMailer::Base.smtp_settings = {
:address = smtp.mydomain.com,
:port = 25,
:domain = mydomain.com,
:authentication = :plain,
:user_name =
You can send an e-mail with password reset link.
I use follow code for send uncrypted password, after that system will
encrypt the password
http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails
--
Posted via http://www.ruby-forum.com/.
Hi,
Can anyone help me to get the namecount using eval, see the data
belows;
namecount = eval(':name={1={1={first_name=leon, last_name=may},
2={first_name=lion, last_name=king}}}')
I want an output should be namecount = 2, because I'm counting how
many name in one raw (1record).
Thanks
Hi,
In your server's host file map the address smtp.mydomain.com to IP 127.0.0.1
so that it is not routed externally.
-NAYAK
On Thu, Jan 8, 2009 at 1:45 PM, tyliong tyli...@gmail.com wrote:
with rails 2.2.2 action mailer requires a valid ssl certificate
i have a question about routing
my
Hi,
What sort of tasks do you intend to do?
Database/ file system/ operating system oriented, appropriate approach can
be decided depending on these
- NAYAK
On Thu, Jan 8, 2009 at 1:28 PM, Zhao Yi rails-mailing-l...@andreas-s.netwrote:
I need to run a background task which should last
Thank you for your reply guys..
I choose fckeditor because it is free and suite to all i need..
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
hi,
Preferrable, give only required access to the user but with a password from
MYSQL and use it with the password specified in the database.yml file. You
can use the security feature for mentioning your username and password as
mentioned by Robert
Regards,
NAYAK
On Thu, Jan 8, 2009 at 1:46 AM,
William Pratt wrote:
Ahh, don't be so hard on yourself, everyone has been where you are. I
enjoy helping on this list and so do many others. This list truly has a
good group of people. Have fun and let me know if I can help with
anything else.
Can we use acts_as_commentable for different
Ubuntu Machine is a set of Open Source Capistrano recipes - packaged
as a gem - that allows you to automate the setup of a machine running
Ubuntu Server 8.0.4.
Those recipes allows you to easily install/setup : SSH, iptables,
MySQL, Apache, PHP, Ruby (+ Ruby Enterprise Edition), Rails, Phusion
Hi,
I have implemented an application which can authenticate users against db
auth or Active Directory based on the configuration set by the admin. But
this works either one at a time, not both together.
For this all the methods for auth, signup etc had checks for AD/ DB and
perform
Hi,
I have implemented an application which can authenticate users against db
auth or Active Directory based on the configuration set by the admin. But
this works either one at a time, not both together.
For this all the methods for auth, signup etc had checks for AD/ DB and
perform
Maybe the below will help. I also know that railsenvy has a good video
on this.
First of all, it is the tables and associations that are plural, not
the classes.
I suggest that you would use single table inheritance for the users
business etc.
You need to have a type column defined in the owners
Use the backgroundrb system. It scales better in the long run as you
decide to do more stuff in the background and require better control.
http://backgroundrb.rubyforge.org/
On Jan 8, 12:58 pm, Zhao Yi rails-mailing-l...@andreas-s.net wrote:
I need to run a background task which should last
Can we use acts_as_commentable for different models in same app?
yes. i don't see why not.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
Vishwanath Nayak wrote:
Hi,
What sort of tasks do you intend to do?
Database/ file system/ operating system oriented, appropriate approach
can
be decided depending on these
- NAYAK
The task is building source code with gcc.
--
Posted via http://www.ruby-forum.com/.
Hi, I'm new to Rails. Does rake db:migrate only process things under
your /db/migrate/ folder? I made some changes in my /app/models/ files
such as defining relationships between classes, but this doesn't seem
to be reflected in my underlying database. So how do I create foreign
keys in Rails
Any one interested please feel free to send an email to sri200...@hotmail.com
We have a client that needs 11 people to start on a project next Wednesday the
14th of January. They just expanded and built out a brand new office and the
dress code is FLEXIBLE!
Job Site: Ideally they would
Hi!
My problem instance's properties failed to share among the actions.
e.g. In action 'collect', I created an CD instance with some
Albums as its properties
using one-many relationship provided by rails API.
Before saving to the db, I just pass the 'CD' instance to action
'show', using
On Jan 8, 3:34 am, alamodey alamo...@gmail.com wrote:
Hi, I'm new to Rails. Does rake db:migrate only process things under
your /db/migrate/ folder?
Correct
I made some changes in my /app/models/ files
such as defining relationships between classes, but this doesn't seem
to be reflected
MaD wrote:
Can we use acts_as_commentable for different models in same app?
yes. i don't see why not.
Thanks for replying.
Do you have some sample code?
I am bit confused,we are using comments for say blog and note in one app
so are they going to refer same table comment or what?
--
Posted
Use render_to_string(options = nil, block) and use the send_data
API.
On Jan 8, 7:27 am, Raj neeraj@gmail.com wrote:
I need to provide users a link to download an user_guide.txt file.
Currently the user_guide.html.erb looks like this.
Dear %...@user.name %,
Please visit
On Jan 8, 6:47 am, J.C. Zhu realal...@gmail.com wrote:
Hi!
My problem instance's properties failed to share among the actions.
e.g. In action 'collect', I created an CD instance with some
Albums as its properties
using one-many relationship provided by rails API.
Before saving to the db,
I second on it
-NAYAK
On Thu, Jan 8, 2009 at 2:45 PM, MaD mayer.domi...@gmail.com wrote:
The task is building source code with gcc.
take a look at the earlier mentioned backgrounDRb:
http://backgroundrb.rubyforge.org/
[quote]
BackgrounDRb is a Ruby job server and scheduler. Its main
On Jan 8, 8:18 am, Anatoly Mikhailov rails-mailing-l...@andreas-
s.net wrote:
You can send an e-mail with password reset link.
I use follow code for send uncrypted password, after that system will
encrypt the
passwordhttp://www.railsgeek.com/2009/1/6/generate-random-password-in-rails
If
Git requires getting used to, but it is good after you learn the
ropes.
On Jan 8, 12:58 pm, Bosko Ivanisevic bosko.ivanise...@gmail.com
wrote:
After years of using various version controls like CVS and SVN, I
finally ended with Git.
On Jan 7, 9:36 pm, pepe p...@betterrpg.com wrote:
Hi
Use the flash object to transfer data between controller actions.
Regards,
Mukund
On Jan 8, 2:01 am, Lance Klusener rails-mailing-l...@andreas-s.net
wrote:
The question is about passing data from action of one controller to
action of another controller.
Inside the new_patient_controller i
Hi,
I am not sure of using multiple host/domain at a time there
Try just
127.0.0.1 smtp.mydomain.com
NAYAK
On Thu, Jan 8, 2009 at 2:57 PM, Tan YL tyli...@gmail.com wrote:
I tried changing it to this :
127.0.0.1 localhost.localdomain localhost smtp.mydomain.com smtp
::1
git-svn might be worth a look. But to be honest, I find it a
headache to keep things in sync between two version control systems
when different people update each system.
On Jan 8, 3:09 am, Jeff Pritchard rails-mailing-l...@andreas-s.net
wrote:
Hi,
I've been using SVN and Capistrano with
Hi all,
I want to implement tagging for my resources, but I found lots
acts_as_taggable available: acts_as_tabble, acts_as_taggable_on,
acts_as_taggable_on_steroid, etc. Some of them are not in active
development, and I do not know which one is more popular. So, any
suggestions? Thanks in
Hi
I would like to know how to debug rails code. I am using radrail
v0.7.2
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
My recommendation is to use Netbeans 6.5 instead.
On Jan 7, 9:31 pm, Samuel Nilsson rails-mailing-l...@andreas-s.net
wrote:
Hi,
I'm a real newbie both in Rails and Ubuntu but I'm going to learn Ruby
on Rails for a schoolproject. I've tried to find out what IDE is best
according to different
I got it to work with the multiple domain names
ActionMailer::Base.smtp_settings = {
:address = smtp.mydomain.com,
:port = 25,
:domain = mydomain.com,
:authentication = :plain,
:user_name = mydomain_mai...@mydomain.com,
:password = password
}
I have the address as smtp.mydomain.com and
no matter what ide you're using, you can always fall back to you good
old trusty console. but if your on radrails/aptana you can take a look
here:
http://aptana.tv/movies/jaxer/PlayQTFlash.html?movie=AptanaRadrailsRailsShellwidth=975height=750
Personally, I would add in the logic to clean up old sessions
periodically or during login.Also, is there a reason you are not
using Rails 2.1.2 or even better 2.2.2? Staying updated with Rails
versions usually resolves any odd defect that you see.
Thanks,
Mukund
On Jan 7, 3:36 am, Tim
On 8 Jan., 10:29, Mukund marut...@yahoo.com wrote:
Use the flash object to transfer data between controller actions.
... or just add
, :created_patient = params[:created_patient]
to your form (where you specify the action that is called) so your
param ain't lost.
you can transmit values between controllers in the following ways:
- parameters to request (if not too long and not compromising
security)
- session (recommended to store id, not objects)
On Jan 8, 10:52 am, MaD mayer.domi...@gmail.com wrote:
On 8 Jan., 10:29, Mukund marut...@yahoo.com wrote:
Hello!
When i use armailer on my development machine i works perfectly. But
when i tries to use it at my production server i get this error message
dependencies.rb:442:in `load_missing_constant':NameError: uninitialized
constant ActionMailer::ARMailer
Anyone who have hade the same problem or
Mukund wrote:
form_for results in a POST operation. You are checking for
request.xhr? in your controller to render the partial. Use
remote_form_for instead to get a XHR request.
Pressing an enter key in a text field doesn't submit a form. The tags
don't add that in.
Regards,
Mukund
googles first result reveals the following thread:
http://railscoders.net/forums/8/topics/9/posts
in the end someone states, that he fixed it. maybe the same thing
works for you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Dear all,
I've saw a plugin called restful_auth several times in rails
community, but I couldn't find any resources on how to use it. Does
anyone know how to install and use it? Help really appreciated.
Best regards,
--~--~-~--~~~---~--~~
You received this
Hi guys,
I have run into some problems with my RoR installation on Leopard. I'm
wondering if there are any logical ways from the command line to
uninstall everything I have installed in order to start fresh? I have
installed ruby, rails, rubygems, sqlite, readline, and mysql.
Cheers,
Cormac
Hi!
I'm new to Rails and I'd like to learn it. Tried to install rails on
SuSE llinux 10.3 with gems but I've got this error: Bulk updating Gem
source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find rails ( 0) in any repository
Hi,
if you had done some googling on the error you could have found it in the
first result itself.
Check http://armyofevilrobots.com/node/418 which states the same
NAYAK
On Thu, Jan 8, 2009 at 5:55 PM, MaD mayer.domi...@gmail.com wrote:
try deleting your gem_cache. here is how to do it:
Frederick Cheung wrote:
On 7 Jan 2009, at 22:06, jabauer jab...@gmail.com wrote:
dlsym(0x2727d10, Init_mysql): symbol not found - /usr/local/lib/ruby/
gems/1.8/gems/mysql-2.7/lib/mysql.bundle
I don't know why it's looking for mysql in /usr/local/lib/ruby when I
put it in /usr/local/mysql
try deleting your gem_cache. here is how to do it:
http://onestepback.org/index.cgi/Tech/Ruby/DeleteYourCache.red
if there is still no change, just try to update to the latest gem
version (afaik 1.3.1).
--~--~-~--~~~---~--~~
You received this message because you
Hi everyone,
Acts as Conference 2009 (http://www.actsasconference.com) is just
around the corner, and things are heating up. I am sure that everyone
has heard that Rails and Merb are coming together for Rails 3. We’re
lucky to have the two guys as speakers who can tell you all about it -
David
On 08 Jan 2009, at 12:33, cormacmoylan wrote:
I have run into some problems with my RoR installation on Leopard. I'm
wondering if there are any logical ways from the command line to
uninstall everything I have installed in order to start fresh? I have
installed ruby, rails, rubygems, sqlite,
Thanks!
On Thu, Jan 8, 2009 at 1:26 PM, NAYAK nay...@gmail.com wrote:
Hi,
if you had done some googling on the error you could have found it in the
first result itself.
Check http://armyofevilrobots.com/node/418 which states the same
NAYAK
On Thu, Jan 8, 2009 at 5:55 PM, MaD
Try something like:
def create_visit(for_patient)
# This populates patient_visit.patient_id w/the proper id value
patient_visit = for_patient.visits.new
# Note that I've changed the action from index to new--that's
# the convention for actions that create new objects.
Frederick Cheung wrote:
On 17 Nov 2008, at 08:03, Remco Swoany wrote:
i just tried gem install json-1.1.3.gem but again..the error-
message:
ERROR: could not find json-1.1.3.gem locally or in a repository
That will only work if you have a file called json-1.1.3.gem sitting
right there.
you're obviously on windows. have you installed nmake? did you add it
to your path-variable? it seems like it is not found on your machine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
i'm trying to use BackgroundRb but when I doworker =
MiddleMan(:tag_sending_worker) in my controller i get undefined method
`MiddleMan' for #SchedulesController:0x25be080 , but when i do it from
the console it works fine.
Of course i tried restarting my mongrel and restarting the
MaD wrote:
if you're looking for restful_authentication, ther is a railscast for
it:
http://railscasts.com/episodes/67
Assuming the same as MaD that you mean restful_authentication, it's also
documented pretty well within the plugin itself. Start with the README
file. Then after running
Hey folks, first timer here so be gentle. I have a messages page which
uses a partial to display comments for each message for an article and a
little box under each message so people can comment on that message.
located at http://localhost:3000/articles/6/messages
.
partial code
%=
Mukund wrote:
Git requires getting used to, but it is good after you learn the
ropes.
On Jan 8, 12:58�pm, Bosko Ivanisevic bosko.ivanise...@gmail.com
I say go with Git! I resisted Git at first, but once I got used to it I
really like it a lot. My primary reason for using it can be summed
does anyone have any ideas?
projects controller
def create
@project = Project.new(params[:project])
@project.company_id = get_user.company.id
@project.status_id = 2
@project_file = Project_File.new(params[:uploaded_data])
respond_to do |format|
if @project.save
Brian Hogan wrote:
In your controller, you just need
data = render_to_string({:action = 'create.html.erb',
:layout=false})
I'm doing a PDF (using HTMLDOC) that way. Works awesome.
Hi Brian, that works a treat thanks. I'm also trying to output some
information to a pdf. Have you
Just installed fink so I could have access to apt-get command. Now
when I try to install libmysqlclient-dev I get the following error
sudo apt-get install libmysqlclient-dev
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package libmysqlclient-dev
What am I
Just installed fink so I could have access to apt-get command. Now
when I try to install libmysqlclient-dev I get the following error
sudo apt-get install libmysqlclient-dev
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package libmysqlclient-dev
What am I
I used InstantRails 2.0 to install RoR on Win XP SP3. It brought rails
2.0.2 and I am having problems updating to rails 2.2.2
After initial installation I run “gem update—system” w/o a problem.
However the subsequent “gem update rails” results in
ERROR: While executing gem … (Gem::InstallError)
On 08 Jan 2009, at 15:33, Dave Smith wrote:
@project_file = Project_File.new(params[:uploaded_data])
ProjectFile seems more like an ActiveRecord class name.
Best regards
Peter De Berdt
--~--~-~--~~~---~--~~
You received this message because you are
Peter De Berdt wrote:
On 08 Jan 2009, at 15:33, Dave Smith wrote:
@project_file = Project_File.new(params[:uploaded_data])
ProjectFile seems more like an ActiveRecord class name.
Best regards
Peter De Berdt
You'll have to excuse me for my lack of knowledge here but I dont
On Thu, Jan 8, 2009 at 3:26 PM, Roger Muthton
rails-mailing-l...@andreas-s.net wrote:
Hey folks, first timer here so be gentle. I have a messages page which
uses a partial to display comments for each message for an article and a
little box under each message so people can comment on that
Franz Strebel wrote:
On Thu, Jan 8, 2009 at 3:26 PM, Roger Muthton
rails-mailing-l...@andreas-s.net wrote:
Hey folks, first timer here so be gentle. I have a messages page which
uses a partial to display comments for each message for an article and a
little box under each message so people
On 08 Jan 2009, at 16:11, Dave Smith wrote:
Peter De Berdt wrote:
On 08 Jan 2009, at 15:33, Dave Smith wrote:
@project_file = Project_File.new(params[:uploaded_data])
ProjectFile seems more like an ActiveRecord class name.
Best regards
Peter De Berdt
You'll have to excuse me for
On 08 Jan 2009, at 16:11, Dave Smith wrote:
You'll have to excuse me for my lack of knowledge here but I dont
understand?
Also, I do hope you have a has_attachment statement in your
ProjectFile model?
Best regards
Peter De Berdt
--~--~-~--~~~---~--~~
You
On 8 Jan 2009, at 14:49, jabauer wrote:
Just installed fink so I could have access to apt-get command. Now
when I try to install libmysqlclient-dev I get the following error
You probably don't want to go down that root at all unless you used
fink to install mysql.
like i mentioned
On 08 Jan 2009, at 15:33, Dave Smith wrote:
@project_file = Project_File.new(params[:uploaded_data])
The solution is even more obvious:
ProjectFile.new(params[:project][:uploaded_data]
new project view
% form_for(@project, :html = {:multipart = true}) do |f| %
%= f.file_field
Dave Smith wrote:
Can anyone recommend a good file upload plugin for uploading standard
files (more than one file per article / project), but I am not
interested in images or image processing, just a standard uploader for
files!
Look for paperclip at thoughbot or github. It works perfectly
Joshua Partogi wrote:
Dear all,
I've saw a plugin called restful_auth several times in rails
community, but I couldn't find any resources on how to use it. Does
anyone know how to install and use it? Help really appreciated.
Best regards,
In google type: restful_authentication github
pepe wrote:
Hi all.
I want to apologize, I guess this is not the best place to post this
but I'm interested to know what RoR developers think.
What would be a good open source versionning system for somebody that
has never used one?
Thanks a lot.
Pepe
We use Mercurial because back
hi,
the invocation in your controller should go
Middleman.worker(:my_worker).my_method(:arguments)
see documentation: http://backgroundrb.rubyforge.org/
btw I'm not using backgroundrb anymore, i got fed up with unclear
error messages and relative instability. I'm now using workling-
starling
Our client is a leading NYC-based publisher of web and mobile games,
and personalization applications. They are seeking a Senior Server
Engineer with Ruby on Rails experience. The Senior Server Engineer
works with the company's server engineering team.
The ideal candidate will have a passion
On Thu, Jan 8, 2009 at 4:16 PM, Roger Muthton
rails-mailing-l...@andreas-s.net wrote:
map.resources :articles do |articles|
articles.resources :messages
end
and comments belong_to :messages right? if so, add it in the routes
map.resources :articles do |articles|
I've created a table in a SQL Server database using a migration,
successfully.
I've tried to change the name of a column in the table and got the
error message above when running 'rake db:migrate'.
Previously I have developed using MySQL and Sqlite and migrations have
worked successfully. This is
What does 'gem list --local' return?
I presume you are doing this with administrative rights?
Martin
On Jan 8, 2:59 pm, LRaiz leo...@raizlabs.com wrote:
I used InstantRails 2.0 to install RoR on Win XP SP3. It brought rails
2.0.2 and I am having problems updating to rails 2.2.2
After initial
Assuming I have two models:
Order belongs_to :payee
Payee has_many :orders
In the orders table, I store the payee_id.
If I want to pull all orders and display the list alphabetically by the
payees last name, what would be the best way to do it?
Would I need to setup a true join table and then
Mukund wrote:
git-svn might be worth a look. But to be honest, I find it a
headache to keep things in sync between two version control systems
when different people update each system.
On Jan 8, 3:09�am, Jeff Pritchard rails-mailing-l...@andreas-s.net
I guess that was a critical piece of
Here is the output of gem list --local
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
capistrano (2.1.0)
cgi_multipart_eof_fix (2.5.0)
cmdparse (2.0.2)
fxri (0.3.6)
fxruby (1.6.12)
gem_plugin (0.2.3)
highline (1.4.0)
On Thu, Jan 8, 2009 at 8:03 AM, Martin Hawkins martin.hawk...@gmail.com wrote:
I've created a table in a SQL Server database using a migration,
successfully.
I've tried to change the name of a column in the table and got the
error message above when running 'rake db:migrate'.
It sounds like
I have the exact same problem. It does not only appear with hpricot,
but with all gems containing mswin32 in the version string. is there
an official fix for this?
Cheers,
Matthias
On 1 Jan., 22:03, Mikael Rudberg rails-mailing-l...@andreas-s.net
wrote:
I found a workaround sort of. I changed
For a sole developer setup where you don't have legacy repos hanging
around, I would really recommend git. I have been using it exclusively
for the past year and really like the Git + GitHub combination.
On Jan 8, 10:10 am, Jeff Pritchard rails-mailing-l...@andreas-s.net
wrote:
Mukund wrote:
I just used acts_as_taggable_on and am very happy with it.
On Jan 8, 3:36 am, Difei Zhao rails-mailing-l...@andreas-s.net
wrote:
Hi all,
I want to implement tagging for my resources, but I found lots
acts_as_taggable available: acts_as_tabble, acts_as_taggable_on,
Hassan,
Thanks for the reply.
No, I didn't edit an existing migration - I created a new one for the
rename.
I understand what you are saying about dropping the table (not the
entire db surely :-0). While that would work, I wouldn't get to
understand what the problem is!!
Martin
On Jan 8, 4:18
Say I have a plugin like so:
class Plugin
def do_something
do_thing :one
do_something_else
do_thing :two
end
end
If I want to wrap the call to do_something_else in a begin/rescue
block, then it would seem that I need to either hack the plugin in
vendor/ or put a patch in lib/
On Thu, Jan 8, 2009 at 8:36 AM, Martin Hawkins martin.hawk...@gmail.com wrote:
No, I didn't edit an existing migration - I created a new one for the
rename.
It sounds like your second migration is trying to create the schema table
which already exists.
Maybe you could post your migrations,
Once I figured out how to use it, it usefully tells you its only
supported for SQL Server 2000 and 2005 databases.
rake db:migrate
rake aborted!
Currently, only 2000 and 2005 are supported.
So it looks like I'm on my own to try and fix activerecord-odbc-
adapter joy!
Unless any else knows of
As you can see most of the projects (rails, plugins, etc) have moved from
SVN to GIT recently, so using GIT during start itself would be helpful to
you
NAYAK
On Thu, Jan 8, 2009 at 10:03 PM, Bobnation boblmart...@gmail.com wrote:
For a sole developer setup where you don't have legacy repos
I've had problems with upgrading gem in the past but they have
involved gem itself and not running it once installed.
Have a look at http://rubyforge.org/forum/forum.php?forum_id=28071 and
try re-installing.
Does 'gem env' give you anything out of the ordinary?
Martin
On Jan 8, 4:12 pm, LRaiz
Rob Biedenharn wrote:
If you have 'defaults' instead of :defaults, then
just change it to a symbol and it will do the right thing.
That was the issue, I had defaults instead of :defaults.
Thanks Rob,
-S
--
Posted via http://www.ruby-forum.com/.
On 8 Jan 2009, at 16:37, Tom M wrote:
Say I have a plugin like so:
class Plugin
def do_something
do_thing :one
do_something_else
do_thing :two
end
end
If I want to wrap the call to do_something_else in a begin/rescue
block, then it would seem that I need to either
Thank-you Thank-you Thank-you
Was having the same problem. The installing ruby-rdoc solved the
problem.
On Jan 3, 11:24 am, Paschal Nee rails-mailing-l...@andreas-s.net
wrote:
Bobnation wrote:
Excellent. I'm still trying to figure out what was missing, but there
must have been a
Yes, I agree that the second migration seems to be trying to re-create
the schema table.
The database is a legacy SQL Server db with over 100 tables already in
existence.
I've noticed that db/schema.rb contains no information re the table
that was built, hence rake trying to re-create the
It looks like that is an option that might work, but is there a way to
do this without using single table inheritance?
Is it possible to do something like this in rails?
Owners
--
class User ActiveRecord::Base
has_many
google for acts_as_double_polymorphic_join
From my app,
Table name: linkages
id :integer(11) not null, primary key
origin_id:integer(11)
origin_type :string(20)
destin_id:integer(11)
destin_type :string(20)
In linkage.rb:
belongs_to :origin, :polymorphic = true
belongs_to
And to be honest, this is not really good code either.
You are manually assigning related record ids instead of relying on
Rails' built-in safeguards.
I'd advise u to start looking at railscasts.com, starting for very
early ones (complex forms might be a good one for you), getting a
This is a plain association, no join table involved.
Try this in script/console and see if it solves your problem. The DB
can easily take care of the sorting:
orders = Order.find(:all, :conditions = '...', :include
= :payee, :order = 'payees.last_name')
Then,
orders.each { |o| puts
It is better practice to have a CommentsController to operate on your
comments instead
of using the Messages controller. I highly suggest that you then use
this tutorial as your
starting point to move forward:
Thanks for the input Muknd.
On Jan 8, 1:50 am, Mukund marut...@yahoo.com wrote:
Personally, I would add in the logic to clean up old sessions
periodically or during login.
Yeah, when I said that I cleared them out I actually setup a cron job
to do it regularly.
Also, is there a reason
1 - 100 of 163 matches
Mail list logo