Hi
I installed ruby1.9.2 through rvm. now my new Rails3 app is complaining
about openssl..
I checked my distro's repos, but libopenssl-ruby is available for ruby1.8.x
and ruby1.9.1
How do i resolve this issue?
--
Sahil Dave
--
You received this message because you are subscribed
page (default public.html) i am
getting a *TypeError:
can't convert Fixnum into String*
Looking at the trace (http://pastie.org/1126756), it seems to be a problem
with mysql2 gem.
Any suggestions on what this issue is?
--
Sahil Dave
--
You received this message because you are subscribed
Try the new accepts_nested_attributes_for feature in rails 2.3
http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes
On Oct 14, 8:14 pm, Chris Morris rails-mailing-l...@andreas-s.net
wrote:
I know there has to be a way to do this. Is there any way to edit a
model,
the :joins option of find. but it seems it works only on
tables in the same db.
Is there a way i can tell (:joins) to join a table from another db? Or is
there some other better way in which this could be achieved?
--
Sahil Dave
--~--~-~--~~~---~--~~
You received
Hi,
i am trying to save an object with 2 associated objects:
Organisation has_many :users
has_many :addresses
def new
@org = Organisation.new
@user = @org.users.build
@address = @org.addresses.build
end
view:
%= error_messages_for 'organisation', 'user', 'address' %
Hi,
I have been trying to use the new nested models forms feature in rails 2.3
#helper
def add_job_profile_link(name, form, vacancy)
link_to_function name do |page|
profile = render(:partial = 'job_profile', :locals = { :f =
form, :job_profile = vacancy.job_profiles.build })
Hi,
I have a requirement in my rails application where i need to provide access
to a blog from another domain.
e.g: blog.company.com should point to my app's blog_controller's show
action. Is this possible.
if it is possible, will the user see:
1. blog.company.com/blog/some-blog
2.
Hi,
I have a requirement in my project, where i need to create multiple apps
that need to be integrated. One of the apps would be used for authentication
that uses Authlogic. I need a single sign-on solution, so that once a user
is logged in he remains logged-in for all the other apps as well.
Hi,
I am trying to observe a select_tag's value, and insert a partial inside the
page based on that value. Here's the code:
#index.html.erb
% form_tag do %
%= select_tag 'product_id',
options_from_collection_for_select(@products, 'id', 'pro_name'), {:id
= 'product_id'} %
%= select_tag
hi guys,
i am trying to create a simple pie chart using open flash chart v2. But i am
getting this error:
Open Flash Chart
IO ERROR
Loading test data
Error #2032
This is the URL that I tried to open:/deals/graph_code
*my controller code looks like this:*
def index
@graph =
hi guys..
I am new to rails and need some pointers on how i should handle multiple
related models.
' ' = model
In my app i am creating and handling some 'deals'. Each 'deal' has got some
'orders', and each 'order' has certain 'duties'.
Now what i am doing currently is, on the new_deal page
hi,
i have some nested resources like, a deal has_many :orders and has_one
:invoice
i am using nested routing for these. so the urls are like:
deals_url
deal_orders_url
deal_invoice_url
and others for the whole CRUD
although everything is working perfectly, the updates for a nested resource
On Feb 25, 11:23 pm, Richard Aday richard.a...@gmail.com wrote:
You need to change the way you reference orders so that you scope an order
within a deal.
thank for the suggestion Richard.. but i managed to do it by adding
an :except clause to the before filter to work on only new and edit
On Feb 15, 1:26 am, Rob Biedenharn r...@agileconsultingllc.com
wrote:
In particular, #build (and #create) automatically set, in this case,
the :post_id of the associated Tag object to be my_post.id
There are times when you want to work briefly with an unsaved object
and #build is
On Feb 16, 1:27 am, Rob Biedenharn r...@agileconsultingllc.com
wrote:
You have to have a saved model object in order to use #build or it
can't assign the post_id to the new Tag (or in your case, the deal_id
on the order or the order_id to the duty). If you need to save them
all at
On Feb 9, 6:07 pm, Sazima rsaz...@gmail.com wrote:
Take a look at the complex forms railscasts series (railscasts.com)...
thanx for the link.. now i am able to save an address along with a
partner. but the partner_id (foreign key for partner) inside address
table is not getting filled up. do
hi all..
i am trying to use *fields_for* to get and save nested attributes in a form.
i have a 'Partner' model associated with an 'Address' model.
partner has_many :addresses
although the form is displaying fine, but on submitting it the following
error is shown:
*can't convert
On Feb 6, 3:35 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
You need to pass the form builder object to the partial (eg via
locals). You are passing it, but then you're not using it, so if you
change your partial to use partner.error_messages etc... it should work.
hi all
i was wondering whether it is possible to use partials along with form_for
and form_field. following code is not working. is there some error or this
case is impossible..??
*#new.html.erb*
h1Enter Details for new Partner:/h1
% form_for(@partner) do |f| %
%= render :partial = 'form',
hi all,
i am new to rails and not able to figure how to get a drop-down
selection list in a view.
i have 3 models (tables): country, state city.
country has many states
state has many cities
now i want to create 3 drop down lists, 1 for each. selecting a
country should make states available in
20 matches
Mail list logo