Displaying 11 results from an estimated 11 matches for "stibrewal".
2006 Jul 31
4
mail list question
Folks,
Is the only way to reply to a posting and maintain the mail thread by
subscribing to the mailing list and then replying to the received email or
is there another way from within the list archive itself? I don''t see a
reply option to the emails in the thread.
Sorry if I am missing something obvious.
Thanks,
ST
-------------- next part --------------
An HTML attachment was
2006 Jul 08
2
Creating/Saving dependent objects
Folks,
Am new to RoR and am building an example to get myself familiar. I am
running into a simple issue while creating a user registration page.
I have a User and Address models defined as below (partial/relevant code
included below). User has_one address and Address belongs_to user. I have a
foreign key defined in address table that refers to user(id)
In a form I take in username, password,
2006 Jun 28
3
couple newbie questions
Hello Folks,
I am starting out with RoR and just browsed through Dave''s book ? couldn''t
stop reading. I started building a prototype to get better hands on
experience and I have run into two simple issues that I am hoping will be a
quick answer for some of you experts out there.
*Issue 1:*
>From within a "companies" controller and list_companies.rhtml view
2011 Jun 02
10
Application Error!!!!!!!!!!!!!!!!!!!!!!!
Hi everybody,
Please any one help me, Previous two day''s I am googling, Still not
find solution. this really frustrating.
I had deploy my app on heroku http://radiationn.heroku.com/. it is
working fine on localhost but i got APPLICATION ERROR.
IN log wht i find that in photo.rb model not able to find
"has_attached_file", I am not able to shout out this proble. It
working
2006 Jul 29
0
displaying select value and debugging RoR application
Folks,
I am running into the following problem.
I have a company model that has_many addresses and address belongs_to
company (it also belongs to a User model but I assume that is irrelevant to
this issue). I am in the list_companies view of the company_controller. When
the user selects a company from the drop down I dynamically update the
cities dropdown for the cities that the selected company
2008 Mar 20
0
Mixing stored procedure call with RoR db calls in the same function gives errors
Folks,
I am using ruby 1.8.5 with rails 1.2.3 and have made changes to
mysql_adapter.rb based on recommendations made here
http://wiki.rubyonrails.org/rails/pages/StoredProceduresInMySql to be
able to use stored procs in my code.
I have changed this call in mysql_adapter.rb
ConnectionAdapters::MysqlAdapter.new(mysql, logger, [host, username,
password, database, port, socket], config)
to
2011 Mar 02
0
polymorphic_path not getting generated
Folks,
I am trying to use the Savage Beast plugin in a polymorphic way. I
have setup my model as below
# Leaving out other details from models
class Forum < ActiveRecord::Base
has_one :recent_topic, :class_name => ''Topic'', :order => ''sticky
desc, replied_at desc''
belongs_to :forum_owner, :polymorphic => true # Helps keep track
of which
2011 May 31
1
Geokit query with multiple models involved
Hello,
My database structure consists of Store, Book, BookStore and Address
as below.
class Store < ActiveRecord::Base
has_many :book_stores
has_many :books, :through => :book_stores
has_many :addresses
acts_as_mappable :through => :addresses
end
class Address < ActiveRecord::Base
belongs_to :store
acts_as_mappable
end
class Book < ActiveRecord::Base
has_many
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks,
I have a simple model hierarchy (reduced to example as below)
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
has_attached_file :photo,
# :url => "/assets/class_cal/<original post
date>/:id/:style/:basename.:extension"
:url =>
2009 Apr 12
4
Can't get an Array function to be visible inside ApplicationHelper
Folks,
I seem to be missing something basic here.
I am trying to call a function from my application layout that will
return me a hash of the roles for the user currently signed in. Here
is the simplified code I have in ApplicationHelper module
class Array
def to_h
Hash[*enum_with_index.to_a.flatten]
end
end
def get_cur_user_roles
["school_admin",
2011 Jan 15
3
has_many :through with Single Table inheritance
I have the following model structure setup.
class User < ActiveRecord::Base
end
class Parent < User
has_many :relationships
has_many :children,
:class_name => "Student",
:through => :relationships,
:conditions => "related_as = ''parent''"
end
class Student < User
has_many :relationships