Displaying 20 results from an estimated 26 matches for "andyv".
Did you mean:
andy
2008 Feb 28
2
change drop down list to radio buttons
In my RoR app I would like to change a drop down list, which dispays a
list of colors selected from the database. Instead I would like to
create a radio button for each color. The user is allowed to check one
color and this will be saved back into the database as the color for
this user.
I don''t know how to do this. Currently it looks like this:
<%= select(:user, :color_id,
2008 Mar 11
6
saving an ActiveRecord without trigging the callbacks
Hello,
How can I save an ActiveRecord without trigger before_save,
after_save, etc?
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2008 Feb 25
6
Event Calendar/Scheduler Implementation
Hi there.
I am a RoR newbie and come from the Java/C# perspective. After digging
into Rails I would like to convert an ASP.NET project -that served as
a protoype- to RoR.
The only thing that I havenĀ“t got a good solution for is handling
calendar events. With that I specifically mean creating, moving an
event or a set of events as well as recurrence handling - similar to
Google Calendar if you
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation
I am creating e-shop and I have products. This view look like this:
<% for product in @category.products %>
<div class="produktyBox">
<%= product.title %><br />
Price: <br />
<div style="color:red; font-size:large; font-weight:bold; margin-
bottom:5px"><%=
2008 Mar 12
3
Some random rails, and maybe Ruby, questions..
Hi,
I''m attempting to create a users statistics controller, and have saved
up some questions regarding this for this post.
So, please comment on any one of them, if not all :-)
1) Is there a library somewhere for doing stats? (e.g. mean, median,
sd, skewness..) on an array in rails?
2) What library would you recommend for "publication ready" (i.e. not
cheesy) histograms,
2008 Mar 11
4
Host recommdations
Hi
I want to host a simple site with Ruby
quickly
at first no DB - just a site that can run a Hello Ruby script
will use a template page
Also I am very new to this so help will be need
any suggestions for a Ruby Hosting service?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
2008 Mar 07
6
creating a model registry
Hi all,
This is a problem I''ve approached so many times and always worked
around, that now I want to solve it once and for all. Say I have
something like this:
---
class X < ActiveRecord::Base
acts_as_wacky
end
module Wackinator
class ControlAllWackos
@@wackos = []
def self.kill_wackos
@@wackos.each(&:kill)
end
end
def acts_as_wacky
2008 May 21
8
before_filter with multiple roles
I have multiple roles in my application.
Now I want to block a method for all users except the administrator and
a manager.
When I do this:
before_filter (:check_administrator_role), :only => [:administration]
before_filter (:check_taskmanager_role), :only => [:administration]
The user must have both roles. How can I change that to an "OR"
combination?
--
Posted via
2008 Feb 01
3
Which version of Ruby for Rails 2.0.2?
I''m using ruby 1.8.6 p111. But some people seem to think that version
1.8.5 is better. Should I give it a whirl?
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2008 Mar 14
2
attachment_fu attributes in db
I''m using file_column for upload images.
now,I want to use the plugin attachment_fu.
I have seen that for use it, i must create the attributes like:
class CreateMugshots < ActiveRecord::Migration
def self.up
create_table :mugshots do |t|
t.column :parent_id, :integer
t.column :content_type, :string
t.column :filename, :string
t.column :thumbnail,
2007 Mar 16
1
sort_link_helper and cross-controller partials
Hello Rubyists,
I ran into a problem with sorting a table (rendered in a partial) using
the sort_link_helper methods after I have submitted data and re-rendered
the table through an AJAX request.
The setup is a follows:
The table is a shared partial of Controller1 and Controller2 accessible
via "shared/table". The AJAX''ed sorting using the sort helper works all
fine on
2008 Mar 02
2
check_box_tag remote_function
I have a collection of check_box_tags that look like the following:
<% for item in @items %>
<%= check_box_tag "item[item_ids][]", item.id, false, {:onchange =>
remote_function(:url => update_items_path, :with => "''items='' +
escape(value) "} %>
<%= item.name %>
<% end %>
My question is, how do I send all of the current
2008 May 16
3
radio button observe field only triggers once
Hi,
If i add field observers to radio button fields they trigger once but
then nothing after that. I have multiple fields in a form that i need
to know if one of them changes and which spedific field. Below is an
example of two foelds i tested and they trigger once with the alert but
then nothing after that. I also tried individual observers for each
field test_yes and test_no but with the same
2008 May 07
2
design question
Hi,
I''m developing a budget planner for myself and do have a table for recurring
expenses, as well as a transaction table for my bank account CSV file
uploads.
Questions: For the projections forward in time I''m wonder whether to:
(a) keep it simple and just calculate future balance projections on the fly,
then feed to gruff graphs
(b) each time a recurring item changes, or
2008 Apr 02
4
options_from_collection_for_select
I have a drop down of country''s and I would like the USA to be the first
displayed. I have tried:
<select id = "user_w_country" name ="user[w_country]" onchange =
"<%=func%>">
<%= options_from_collection_for_select @country, ''id'',
''country'', :selected =>
2008 Feb 16
2
nil error?
Hi everyone,
I''m sure I''m doing something stupid with this, so if somebody could talk
some sense into me that would be great :)
I''m trying to just increment a variable and I think I''m missing some
basic concept (this is RoR 2.0.2 btw)
So have a "players" table with several variables, including one called
"odds". I''m using the
2008 Jan 18
16
Need a good RoR developer
Hi, I''m looking for qualified Ruby on Rails developers to work on a
client web portal project in Midtown Manhattan for a large financial
research company.
Requirement Overview:
Ruby / Ruby on Rails developer with strong object oriented programming
background. Good understanding of model driven architecture, MVC, RDBS
and data modeling.
Required Skill Set:
- BS. in Computer Science (or
2008 May 06
10
Best way to implement?
So I''m new to all this Rails stuff and this is probably a database
design-related question to, but here it is...
Just for learning I''m trying to build a little real estate listings
application. Of course there is the listings model which will store
basic information like name, price, description, and all that jazz.
I''m to the point where I want to figure out how to
2008 Apr 17
4
Do I need to use sessions if I don't store anything in them?
Hi,
I got very small app that has user part and admin part. The problem is
that after a while the sessions table has ~150mb. I don''t really need
to store any user data in the session for the user part. I only need
it for the admin part.
Can I simply turn session off in controllers from the user part? Are
there any drawbacks of turning the session off?
Regards
2008 Nov 05
2
AJAX - REST & nested resources
I''ve created a set of resources, with scaffolds that all work. I then
changed one resource to be nested inside another as a one to many
relation. This required a little bit of work on the tests, the
controllers and the views but it all works. Now I want to go the extra
step and have the child resources become updateable inside the parent
form. I''ve pushed the formatting of the