Displaying 20 results from an estimated 20 matches for "cayc".
Did you mean:
catc
2006 May 23
7
back-porting 1.1.1 app to 1.0 rails server
I''ve been developing new application on local machine in rails 1.1.1.
Hosting provider (godaddy) is at rails 1.0.0 and not upgrading any time
soon I''m told. I set "RAILS_GEM_VERSION = ''1.0.0''" in my environment.rb
file to get past inital errors, but now I''m getting the following error:
2008 Jun 03
15
Problem with rails environment with cygwin...mysql doesn't
I have rails 1.2.2, ruby 1.8, mysql 5 and Rad Rails in my win XP and
this
stack works fine.
But I''m trying to use rails 2.1, mongrel, capistrano, git, mysql all in
cygwin and e Text Editor.The only think that doesn''t work is mysql.I
installed this app from the source(in version 5.0.45, ./configure then
make install).All
right, but when I try to launch this error occurs:
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble
getting the ID passed through to the controller.
I use this in my view to create the field:
<% for frame in @frames %>
...
<%= in_place_editor_field :frame, :price %>
<% end %>
and this produces the following in my output:
<span class="in_place_editor_field"
2006 Nov 05
4
sending email..
i am trying to send email via my app, and although it was working
previously (i had to fiddle with the authentication to get it to work
correctly) but it was working fine..
today, i tested it, and i am getting this:
Net::SMTPFatalError (550-Verification failed for <xxx-ip11aQz5vkFBDgjK7y7TUQ@public.gmane.org>
550-(result of an earlier callout reused).
550 Sender verify failed
):
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email
2006 Jun 24
4
setting attribute in constructor, .NEW works but not .CREATE
I have table "decks" with three fields: "id", "created_at" and "cards"
which is a 264-character string field. I have modified the model with a
constructor, as follows:
class Deck < ActiveRecord::Base
attr_reader :cards
def initialize
@cards = "12345"
end
end
If I call Deck.new from my controller, I get no errors and an object
with the
2008 Jun 05
23
unit test question
In development and production, I''ve got postgresql constraints that
prevent deleting a CaseManager if there is a Client that belongs to that
CaseManager.
In unit tests...and obviously in my testing db, those restrictions don''t
get added.
Is it wrong to test for deleting dependent records in unit tests?
Craig
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Sep 14
2
newbie: if statement with multiple conditions
This seems to be way too easy, but I can''t seem to find an example
online...
Is it possible to have an "if" statement with multiple conditions?
For example:
if variable1 == "THIS" or "THAT" or "THOSE"
end
I''m assuming Ruby has a much more elegant sytax to accomodate this.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jun 21
14
[Bounty] 1 pizza for 1 simple plugin
So here''s the deal. I don''t know the innards of rails well enough to
do this quickly but you might. First person to write this and release
it under MIT license or public domain, and tells me, gets a free
pizza from your favorite local delivery place. You pick the toppings,
I''ll call ''em and order it up for you. Yeah a pizza isn''t much but I''m
2006 Nov 06
4
Confirmation fields on forms
I am unsure how to use a confirmation only field in my forms. The
perfect example is when registering a user, you want them to type their
password twice but you only want to have one record for it.
The form fields;
user[password]
user[password_confirmation]
form posted;
user = User.new @params[:user]
Error is thrown because there is no method for password_confirmation.
--
Posted via
2006 Sep 20
3
Can this 1337 PostgreSQL Subquery Union be done in AR?
Just wondering if it''s possible, without resorting to find_by_sql.
select id, title, datetime, type from (
select id, title, added as datetime, ''items'' as type from items
union
select id, headline as title, datetime, ''news'' as type from news
) as items order by datetime desc limit 50;
I''m also curious if it''s possible in MySQL.
Joe
2006 Oct 23
3
passing parameter to action
i have a table of data in my application. i would like to be able to
sort the data in the table by clicking on the column header. the way
i was thinking i want to do this is just by making a ''sort'' action,
and then calling the sort action from each link in the table header
(passing the respective column name). it doesn''t seem to be possible
to pass parameters to an
2006 Oct 11
3
Basic Relationship Problem
I''m trying to do a basic relationship and it''s not working the way it
should. The data model is obviously a test database as the fields are
minimal.
In irb I do the following:
>> user = User.create(:name => "shawn")
=> #<User:0x259ceac @errors=#<ActiveRecord::Errors:0x259c3a8
@errors={}, @base=#<User:0x259ceac ...>>,
2006 Oct 13
3
How to get a count of line_items
I am fairly new to Rails, and I am having difficulty in forgetting the
old way of developing and using the Rails way.
This is my question, using orders and line_items as an example.
An order has_many line_items
A line_item belongs to order
In my OrdersController I have
def summary
@orders = Orders.find(:all)
render :xml => @orders.to_xml()
end
What I want to achieve is to
2006 Oct 24
13
How can my boss take rails seriously with bugs like this?
The Time::next_week method is supposed to give the time of the start of
the next week. But look at this, it cocks up :
>> t=Time.parse "Monday October 16th 2006"
=> Mon Oct 16 00:00:00 BST 2006
>> t.next_week
=> Mon Oct 23 00:00:00 BST 2006
>> t.next_week.next_week
=> Tue Oct 24 00:00:00 BST 2006
>> t.next_week.next_week.next_week
=> Mon Oct 30
2006 Aug 16
11
just don''t ''get'' "has one" and "belongs to one"
Well, I understand what they do and how, I just don''t get why!
It seems to me that any time you would have this relationship between
two tables...they should be one table! Agile Rails book gives what
seems to me to be a lame example for this. They use the example of an
"invoice" and an "order". An invoice belongs to an order and an order
has one invoice. Seems
2008 Jun 04
8
Accessing Params Hash form Action Mailer Model
I have used Action Mailer to collect data from a form and send it to a
recipient. Rather than hard-code things like the subject, recipients,
and return address into the model, I would like to include that
information in hidden fields in my form thereby causing that
information to be included in the params hash. My question is: How
can I access that information from the params hash in the model?
2006 Sep 20
17
Newbie : What is the number Rails adds in images URL, etc?
If I write :
<%= image_tag "rails.png" %>
I get in HTML :
<img alt="Rails" src="/images/rails.png?1158095722" />
What is the number at the end of the src tag ? What is it for ?
Thanks :).
Nicolas.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2006 Sep 27
0
Require problem with payment gem
I did a "gem install payment", version 1.0.1. The require statement in
my controller:
require ''payment/authorize_net''
...returns a "no file to load" error.
I ended up copying the files from the gem''s lib subfolder to my
application''s lib folder and everything worked from there. Doesn''t seem
right, though.
What am I missing
2006 Aug 16
2
Q on AJAX with respect to DRY
I have a shopping cart function, and I''d like to set it up to update the
cart with AJAX. My AJAX call will return a view that displays the cart
items.
My question is with regards to keeping things DRY. When the user goes to
"view cart", that page needs to display the cart, then the cart display
needs to update with AJAX calls when items are added from that page. It
would