Displaying 20 results from an estimated 6000 matches similar to: "Can Ruby do this?"
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at
Google Base and thinking that it''s got some really good ideas in it.
Especially the way you can create your own "type" of item with its own
custom attributes, like date range, location, number, text, etc. Kind
of like defining a database with a GUI, but not exactly.
It seems really interesting to me, from
2006 Mar 28
4
1.1 won''t install!
I get this result in Terminal (10.4.latest)
pb12-olivier:~ ambush$ gem install rails --include-dependencies
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
ERROR: While executing gem ... (Errno::EACCES)
Permission denied -
/usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
2008 Jan 16
3
Pause on graphics
My R script needs to pause or wait for a key or mouse on each graph. I used the following statement after each plot
par(ask=TRUE)
This works on Windows but not on MacOS.
Is there any way to pause on graph in MacOS?
Thanks,
Vu
[[alternative HTML version deleted]]
2006 Feb 24
6
Changes to Class File Not Being Recognized by Webrick
Newbie, having good luck with Dave Thomas'' book ''Depot'' application
until I discovered that changes to one of my .rb class files are not
being recognized until I bounce the webrick server.
Any ideas on this? Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 24
3
generating a controller that inherits from a base controller
how can I generate a new controller that inherites from another bas
controller?
using: ruby/script generate myNewController command?
--
Posted via http://www.ruby-forum.com/.
2007 Jul 31
3
Nonlinear optimization with constraints
Hello R community,
I am using R for creating a model using optimization. I would like to ask if there is R-function/package for solving the problem below:
Minimize sum(abs(exp^(Ai1 x1 + Ai2 x2 + ... + Aim xm - bi) - 1)), for each i = 1, ..., n.
subject to Ai1 x1 + Ai2 x2 + ... + Ajm xm - bi <= c, where c is a scalar.
(x is a vector of variables, A is nxm matrix, b is a vector)
2006 Apr 11
4
find(params[:id]) question
Admin Controller -
def show
@wizard = Wizard.find(params[:id])
end
View -
<td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td>
URL -
http://localhost:3000/admin/show/1
I want user_name (one of the columns in the database) instead of the id
to show
For example:
2006 Feb 03
6
Saving a User Object while in the Address Controller
Hi,
My saves are failing me and I can''t figure out why.
I am trying to save an address id to a user object just after I create
the address.
This isn''t the exact code, but it shows what I am trying to do.
class AddressesController < ApplicationController
def create
@address = Address.new(params[:address])
saved_address = @address.save
@user =
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi,
when I define a db column to be non-nullable or of length 20 or as
numeric, I would expect rails to validate that, but that doesn''t seem
to be the case.
Any idea why that is? The metadata is accessible, at least in the mysql case.
I am using rails 1.0 with mysql 5.
Cheers,
Mariano
2011 Aug 01
3
CentOS 6 driver support
Hello all,
This is the laptop I own:
HP Pavilion dv6t Quad Edition
Spec: Intel Core i7-2630QM 2.0GHz, 6GB RAM, 750GB HDD, VGA ATI Radeon HD
6490M
You can also check the spec here:
http://www.amazon.com/HP-Pavilion-dv6t-dv6tqe-Laptop/dp/B00506B7DS/ref=sr_1_3?s=electronics&ie=UTF8&qid=1312164145&sr=1-3
I am going to install CentOS 6 to it but I want to make sure that which
drivers
2006 Mar 14
5
GROUP BY and SUM
I have orders, order_items, and products.
I want to collate several orders so that I can get a SUM of quantities
ordered for each product etc.
Can I say something like (the below gives an error on :sum, and ignores
:group)
OrderItem.find(:all, :sum => ''quantity'', :group => ''product_id'',
:include => [:order, :product])
I want to get back a
2006 Feb 21
29
script/console
The agile book says "You can inspect variables, set values, add other
breakpoints, and generally have a good time".
This is very sweet and totally useless. For example, I want to see the session variable,
the cookies variable and so on. These names are unknown. I think I guess that the things
that are available depend on where you put the breakpoint() call. I''ve tried a
2006 Mar 31
6
Calculating Dates
Hello,
I am a complete newbie with Ruby and Rails. I am working on learning it
by writing a project I was going to write in PHP using Rails. I am
having a difficult time finding clear information on how I would do
this.
I need to take a date out of a table in my database and given another
day calculate the next 28 day anniversery of the original date. This is
used to calculate a delivery
2006 Feb 23
5
layouts
I created a controller called reports, for which I didn''t have any model
or tables.
I wanted to use a menu/layout structure similar to all my other
models/controllers and added a layout named reports which then gives me
the menu/layout structure but is also now part of all my reports.
That isn''t gonna work so I renamed reports.rhtml to reports_forms.rhtml
(still inside my
2006 Feb 07
3
Creating a new object with a passed in parent?
I have a simple object, Article, which has_one :parent of the same time.
On my Show page for a given article there will be a "new child" button
which will pass the current :id (or the current Article itself) to the
new form. What is the proper way to hide a reference to this parent in
the form so that when it is submitted back, the create method knows what
to do with it?
2006 Feb 16
5
Firefox and IE performance with Rails App
In my rails application, certain computers were having huge problems.
There were certain pages that were exceptionally slow, even to the point
of timing out. Other computers did not have a problem. I finally found
that Firefox was the difference. When using Firefox on those computers
it works fine. The slow pages were typically posting a form with a
couple hundred fields.
This behavior was
2011 Jul 17
2
Upgrade from CentOS 5.4 to 5.6 -> 6.0
Hi all,
I am running 5.4
After running
sudo yum clean all
sudo yum update
We got it upgraded to 5.6
cat /etc/redhat-release
CentOS release 5.6 (Final)
So, how can I get it my CentOS from 5.6 to 6.0?
[vuhung at -08 ~]$ sudo yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.vietoss.com
* extras: mirror.vietoss.com
* updates: mirror.vietoss.com
2006 Feb 23
12
RoR site structure on Apache
I try a ''hello world'' demo here,you can see all my codes and structure
http://www.smtservers.com/demo/
I want to access the ruby app like this
http://www.smtservers.com/demo/say/hello
but I get a 404 error.
Please let me know why.
I am not sure the site structure is ok or not.Please give me a help
Thanks
Mark
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
5
can you give a answer?
when i tail -f my log:
i find this:
"Completed in 0.00233 (428 reqs/sec) | Rendering: 0.00005 (2%) | DB:
0.00118 (50%)"
i am sure, this request didn''t access DB. but why here DB is (50%)
it''s log wrong or my fault?
regards
--
Posted via http://www.ruby-forum.com/.
2006 Jun 24
4
blog generator?
Hi Guys,
I''ve been out of the rails loop for a couple of months.
Now Im about to deploy another new app. But I need to add a simple
weblog to the application...
has anyone done a weblog generator or do yoyu know of any weblogs thats
easy to integrate in a current app??
thanks in advance!
Mikkel Bruun
www.strongside.dk - Football Portal(DK)
ting.minline.dk - Buy Old