Frederick Cheung wrote:
> On Apr 30, 10:24�pm, "Ahad L. Amdani" wrote:
>
>>
>> So, my questions are as follows:
>> 1. How do I have the submit button go to the "Set" action defined in
>> the practices_controller?
>
> by default this form would submit to the update (if the record
> existed) or c
hi,
i have 3 models
1.request
2.user
3.requesttargetuser
Requesttargetuser
belongs_to :request
belongs_to :user
User
has_many :requesttargetusers, :dependent=> :destroy
has_many :requests,:through => :requesttargetusers
Request
has_many :requesttargetusers,:dependent=> :destroy
has_many :use
Yep. I had to both require the file then include the module:
require 'lib/modules/report_csv_process.rb'
include ReportCsvProcess
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
The website already has Sphinx integrated with Php. I just want to query
it and get results. How is it possible?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Rub
Hi guys, I just discovered that both logging in and signing up does
not work in IE6 due to an InvalidAuthenticityToken error. I'm using
the latest restful-authetntication plugin. What's weird though, is
that I viewed the source before submitting and took note of the token.
After submission, on the
or to avoid trusting the default just go ":Rscript server mongrel".
If I'm not mistaken, you're probably using ":Rserver" which
automatically starts the server in the background.
On May 3, 3:19 pm, Harold A. Giménez Ch.
wrote:
> Thin is just another webserver for ruby apps (mongrel, webrick, thi
I want to use the very powerful Rails testing framework to test
different kinds of servers (in my case, WordPress with some plugins
I'm developing).
WordPress will run on 'localhost' and the database will be local.
I'll write the models to describe the database, so that Rails has full
visibility
I've been having a problem. I have an application layout and a users
controller. All the methods, but forgot_password, must use the application
layout. So, I added below the class declaration the following line:
class UsersController < ApplicationController
layout 'login', :only => [:forgot_pa
Since I am not rendering an rjs template what would this be? I just
want the show.html.erb template to draw out in its entirety.
Thanks
On May 3, 9:16 pm, 7stud -- wrote:
> Elliott Golden wrote:
> > What am I doing wrong?
>
> The definition for remote_function I'm looking at has an argument:
>
Thin is just another webserver for ruby apps (mongrel, webrick, thin, ...)
http://code.macournoyer.com/thin/
You could've done :Rscript server to accomplish the same Rick Lloyd is
describing (which would default to whatever server you're using).
On Sun, May 3, 2009 at 9:04 PM, 7stud --
wrote:
>
Elliott Golden wrote:
> What am I doing wrong?
>
The definition for remote_function I'm looking at has an argument:
:update => "id of element to update"
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are s
Rick Lloyd wrote:
> I don't understand, when I issue the rails.vim command
> ":Rscript server thin"
> the thin server is started in the current VIM window with
> output visible.
What's a 'thin server'? As I mentioned in my op, this is what I had
been doing in Terminal:
/myapp$ ruby script/se
This is the first time I have used remote_function and I'm unclear on
why my code is not working as I would expect.
I am trying to have my select box load the specified action and pass a
few params to it when an item is selected.
Here's an outtake of the code I have:
<% form_for(@order) do |f|
You can kill processes with name:sudo killall ruby
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe fro
I don't understand, when I issue the rails.vim command ":Rscript
server thin" the thin server is started in the current VIM window with
output visible. The behavior is identical to that in a terminal
window which has has the command "script/server thin" issued.
i.e. I can see the output from the
> As a result, the way you used fetch in your code doesn't do anything
> different than the '[]' method would do.
I've got it! :) *AND*, I don't have to expand my thinking about
what's true and what's false in Ruby. What I have to keep in mind is
that hashes return a default value for an undefi
Harold wrote:
> The issue is that rails.vim starts the server with the --daemon
> option, so it just sits there in the background. :Rserver! will try to
> kill it first, and restart it from vim, but I'd just use the terminal
> for controlling your server during development.
Ok. Will do.
--
Post
7stud -- wrote:
>
> Here's where fetch would make a difference:
>
Or in this case:
Frederick Cheung wrote:
> or do you sometimes explicitly store nil in
> the session (and want that to be distinct from
> the value not being there at all) ?) ?
h = {"red" => nil, "blue" => true, "yellow" => nil
Hello,
I'm currently toying with Rails/Flex app and I noticed that even that
Rails returns XML with all type data I still have to do such tedious
things like parseInt(event.result.user.age) in AS.
Perhaps anyone knows if there is a solution to have types automatically
typecasted in Flex?
--
Pos
The source the the error is the ym4rgm plugin:
a << "\n" unless
options[:without_js]
However, it's strange that that error is happening, as
ActionController::Base.relative_url_root has been around for awhile.
What version of Rails are you running? You can also try changing that
line in ym4r_gm/l
pharrington wrote:
> ...
>
> Anyway, by default Rails will set the encoding to UTF8 (just put
> Rails.logger.debug "Kcode: #{$KCODE}" to confirm this is the case for
> you). To see what encoding *is* working properly, just check the
> $KCODE global from irb. Then set that accordingly in your
7stud -- wrote:
>
>> So, out of
>> curiosity, is it your understanding that, in Ruby, false includes the
>> absence of a key from a hash?
>>
>
> I don't think of it in such abstract terms. If I the key doesn't exist,
> the '[]' method returns nil.
>
By the way, using fetch like this:
fetch
...
Anyway, by default Rails will set the encoding to UTF8 (just put
Rails.logger.debug "Kcode: #{$KCODE}" to confirm this is the case for
you). To see what encoding *is* working properly, just check the
$KCODE global from irb. Then set that accordingly in your
environment.rb and restart your
7stud -- wrote:
>
> Experienced programmers in other languages often get tripped up by ruby
> because they expect things like empty strings(""), empty arrays([]) or
> empty hashes({}) to evaluate to false. But because none of those things
> is specifically false or nil, they evaluate to true.
Doug Jolley wrote:
> If so, I'm just
> going to have to expand my understanding of what constitutes false in
> Ruby to include the absence of a key from a hash.
>
Your understanding of what 'evaluates' to false in a boolean setting,
like an if statement, is spot on. false obviously evaluates
resh Mix wrote:
>
> I think, it is same, because I have only ruby 1.8.7 installed.
>
> $ ruby -v
> ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Ok. ruby 1.8.* doesn't understand multi-byte/unicode characters, like
russian characters. ruby thinks that every character is an ascii
chara
Pål Bergström wrote:
> Brian Mr wrote:
>> Pål Bergström wrote:
>
>> y = myrecord.myattribute
>>
>> y now holds the unencypted value.
>
> Got it working with this in the model:
>
> before_save :crypt_data
> after_save :decrypt_data
> after_find :decrypt_data
> define_method(:after_find) { }
>
On May 3, 9:14 pm, djolley wrote:
>
> Now, I want to clarify the above statement. My recollection of the
> cases in which I have previously gotten into trouble didn't involve a
> hash; but, rather, I was doing something like, "if foo" and the
> trouble arose when the foo variable had not been de
> Is
> if session[:foo]
> ...
>
> not good enough for you (or do you sometimes explicitly store nil in
> the session (and want that to be distinct from the value not being
> there at all) ?) ?
Actually the distinction between nil and nothing is exactly the issue;
but, it's not what you're thinki
7stud -- wrote:
> Fresh Mix wrote:
>> Frederick Cheung wrote:
>>> You should have said that from the start :-). This points to an
>>> encoding problem, eg the default encoding used to read your source
>>
>> Database is in UTF-8, but it aslo doesn't work if word is in controller
>> sourse: spelle
Hi all,
I am trying to create a mobile version of my application and for example
for the mobile forums in routes.rb is:
map.resources :forums,
:controller => 'mobile/forums',
:path_prefix => '/mobile',
:name_prefix => 'mobile_' do |forums|
for
On May 3, 7:24 pm, djolley wrote:
> > You're running a different rails version (2.2.2 or less), whereas the
> > others must be using 2.3.2 (session handling got a revamp).
>
> Two things:
>
> 1. Under the revamp is 'session' a real hash?
>
it's a special hash (because there's crafty stuff to d
Try just require "debug". It's not perfect but it works (in most
cases).
On Apr 23, 11:56 pm, Rafael wrote:
> Hi everybody,
>
> I am looking around but only found confirmation of the fact, that ruby-
> debug is not maintained (right now/ anymore / yet)
> Are you looking into the same issue, have
Fresh Mix wrote:
> Frederick Cheung wrote:
>> You should have said that from the start :-). This points to an
>> encoding problem, eg the default encoding used to read your source
>
> Database is in UTF-8, but it aslo doesn't work if word is in controller
> sourse: speller.check("лошадь")
>
> S
I can't understand why authenticate_or_request_with_http_basic keeps
failing even though I am entering the correct info.
If I try to access /admin/items/new, I enter the correct info but I
keep getting prompted.
The strange part is that when I cancel out, I get "HTTP Basic: Acce".
Here's the co
Brian Mr wrote:
> Pål Bergström wrote:
> y = myrecord.myattribute
>
> y now holds the unencypted value.
Got it working with this in the model:
before_save :crypt_data
after_save :decrypt_data
after_find :decrypt_data
define_method(:after_find) { }
Works perfect.
Just one more thing. How do I
Frederick Cheung wrote:
> You should have said that from the start :-). This points to an
> encoding problem, eg the default encoding used to read your source
Database is in UTF-8, but it aslo doesn't work if word is in controller
sourse: speller.check("лошадь")
So how can I test different enco
if request.post?
@author = Author.new(params[:author_name])
@publisher = Publisher.check_this(params[:publisher_name])
@category = Category.check_this(params[:category_name])
@storage = Storage.check_this(params[:storage_name])
end
That's my code for other models and it wo
Hi,
BETCoffee is a young startup based in Lausanne, the french speaking part
of Switzerland.
We are currently looking for a senior Rails developer to join the team.
The position is on a permanent basis and 100% in Lausanne. Fluent
english or french (better) is mandatory. More information in the
> You're running a different rails version (2.2.2 or less), whereas the
> others must be using 2.3.2 (session handling got a revamp).
Two things:
1. Under the revamp is 'session' a real hash?
2. From my code you probably saw what I was trying to do.
Specifically, I was attempting to use the f
On May 3, 6:19 pm, Fresh Mix wrote:
>
> I have <%= @xxx %> on view, and it prints false.
>
> Also I have tested many words from model, and all was false.
>
> for row in @results
> if speller.check(row["word"])
> ...
>
> I have this problen only with russian words, english works fine.
You should
On May 3, 10:28 am, JannaB wrote:
> I am wondering what you gentlemen might use in lieu of basic
> scaffolding. Suppose I have a simple table, and it has, say, 100,000
> rows. I want the user to be able to drill down to edit (and/or
> possibly delete) a given row, as well as to show him, say, a s
if request.post?
@author = Author.new(params[:author_name])
@publisher = Publisher.check_this(params[:publisher_name])
@category = Category.check_this(params[:category_name])
@storage = Storage.check_this(params[:storage_name])
end
That's my code for other models and it w
I am wondering what you gentlemen might use in lieu of basic
scaffolding. Suppose I have a simple table, and it has, say, 100,000
rows. I want the user to be able to drill down to edit (and/or
possibly delete) a given row, as well as to show him, say, a screen
(or more) of potential candidate rown
Frederick Cheung wrote:
> On May 3, 2:09 pm, Fresh Mix wrote:
>>
>> require 'rubygems'
>> require 'raspell'
>>
>> def xxx
>> speller = Aspell.new("ru_RU")
>> speller.suggestion_mode = Aspell::NORMAL
>> @xxx = speller.check("лошадь").to_s
>> end
>>
>
> If your script contains only those lin
On May 3, 5:11 pm, djolley wrote:
> And finally, here's the error message:
>
> NoMethodError in LoginController#login
> undefined method `fetch' for #
You're running a different rails version (2.2.2 or less), whereas the
others must be using 2.3.2 (session handling got a revamp).
Fred
>
> Th
On May 3, 2:09 pm, Fresh Mix wrote:
>
> require 'rubygems'
> require 'raspell'
>
> def xxx
> speller = Aspell.new("ru_RU")
> speller.suggestion_mode = Aspell::NORMAL
> @xxx = speller.check("лошадь").to_s
> end
>
If your script contains only those lines then this is normal - you've
defined
Hi Eric and pharington,
I'm not certain what you mean by "upload an image" and I don't mean an
upload from the user's own harddisk as with an edit box for the path
etc.
So to clarify: rather I supply the user with a form that has an 'img'
tag to an image on another site and which the user can se
The issue is that rails.vim starts the server with the --daemon
option, so it just sits there in the background. :Rserver! will try to
kill it first, and restart it from vim, but I'd just use the terminal
for controlling your server during development.
On May 3, 11:59 am, 7stud -- wrote:
> Harol
That overwrites the cookie for the session. By the time they attempt
to login, a session has already begun for them. CookieStore is doing
the management behind the scenes. I want to amend the cookie to have
an expiration date which, it seems, it does not have by default.
etienne
On May 1, 10:1
> Can you send the code and error?
Sure. Here's the offending line:
session[:target_uri]='/admin' if !session.fetch(:target_uri,nil)
And here's the full controller code (See specifically line 10)
1 class LoginController < ApplicationController
2
3 def login()
4 # b
Yep.. thanks. The error is thrown later.. so you can only rescue it
there or something.. I'm now figuring out how to check cookie size
inside an action. Any ideas?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because
Harold wrote:
> I don't have a mac, but this is pure unix and should be applicable to
> you as well.
>
> Get the PID of the server process and kill it manually:
> $ ps aux |grep ruby
> hgimenez 30736 24.8 1.6 48772 33252 pts/0Sl+ 11:22 0:03 ruby
> script/server
> hgimenez 30802 0.0 0.0
Sorry, I should have added the trace:
vendor/plugins/ym4r_gm/lib/gm_plugin/map.rb:36:in `header'
app/views/user_photos/show.rhtml:2:in
`_run_erb_47app47views47user_photos47show46rhtml'
app/views/user_photos/show.rhtml:1:in
`_run_erb_47app47views47user_photos47show46rhtml'
app/controllers/user_p
Pål Bergström wrote:
> Brian Mr wrote:
>> Pål Bergström wrote:
>
>> Simply add a public method to the model that returns the unendrypted
>> version. The method will not map to an actual column in the db, but to
>> the controller it will appear just like any other colum.
>>
>> e.g.
>>
>> def
Hi all,
I've installed the ym4rgm plugin so that I can integrate a google map to
pinpoint locations of photos. I cant find where the error refers to.
I got the API key from google for http://localhost and put it into
config/gmaps_api_key (development and test).
The error is:
undefined method `re
I don't have a mac, but this is pure unix and should be applicable to
you as well.
Get the PID of the server process and kill it manually:
$ ps aux |grep ruby
hgimenez 30736 24.8 1.6 48772 33252 pts/0Sl+ 11:22 0:03 ruby
script/server
hgimenez 30802 0.0 0.0 4204 704 pts/1S+ 11
I have this ajax form that could be disaplyed multiple times on the page:
If it is displayed multiple times when i do the ajax submit I get those
same fields submitted. Is there a way to differentiate between them all?
<% fields_for :site do |f|%>
<%= f.text_field "company",'', :size => '6'
Brian Mr wrote:
> Pål Bergström wrote:
> Simply add a public method to the model that returns the unendrypted
> version. The method will not map to an actual column in the db, but to
> the controller it will appear just like any other colum.
>
> e.g.
>
> def myattribute
> Crypto.decrypt(co
Pål Bergström wrote:
> Brian Mr wrote:
>> Pål Bergström wrote:
>>> I'm using a Crypto.encrypt("string") to create a record for a column and
>>> Crypto.decrypt(column) when reading and presenting it in the browser. I
>>> do this in the controller. Can I do it in the model instead?
>>
>> Yes. You
Hi
In my application i need self-referential has_many :through
associations, but that i make not work:
Rails -v 2.3.2
The Migrations:
create_table :pages do |t|
t.string :name
t.text :body
end
create_table :links do |t|
t.integer :from_page_id
t.integer :to_page_id
end
The Models:
cl
On May 3, 12:33 pm, "Joost H."
wrote:
> Hi,
>
> I'm trying to rescue from a
> ActionController::Session::CookieStore::CookieOverflow error... however
> this doesn't work:
>
> def some_controller_action
> begin
> session[:too_much] = 'toomuchinfotostore'*4000
> rescue CookieOverflow
>
I have been using fields_for for my inline ajax forms. How do submit text
fields using a button_to_function?
I have several inline forms using ajax calls to do CRUD for my contact info.
On Sun, May 3, 2009 at 4:42 AM, Frederick Cheung wrote:
>
>
>
> On May 3, 6:41 am, Me wrote:
> > Is there a
Brian Mr wrote:
> Pål Bergström wrote:
>> I'm using a Crypto.encrypt("string") to create a record for a column and
>> Crypto.decrypt(column) when reading and presenting it in the browser. I
>> do this in the controller. Can I do it in the model instead?
>
> Yes. You can create a custom attribute
On Sun, May 3, 2009 at 6:09 AM, Fresh Mix
wrote:
>
> In irb all works fine:
>
> # irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'raspell'
> => true
> irb(main):003:0> speller = Aspell.new("ru_RU")
> => #
> irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL
>
Pål Bergström wrote:
> I'm using a Crypto.encrypt("string") to create a record for a column and
> Crypto.decrypt(column) when reading and presenting it in the browser. I
> do this in the controller. Can I do it in the model instead?
Yes. You can create a custom attribute for the unencypted versi
Problem solved by using plugin:
http://github.com/iain/translatable_columns/tree/master
--~--~-~--~~~---~--~~
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-ta
Fresh Mix wrote:
> In irb all works fine:
>
> # irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'raspell'
> => true
> irb(main):003:0> speller = Aspell.new("ru_RU")
> => #
> irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL
> => "normal"
> irb(main):005:0> s
In irb all works fine:
# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'raspell'
=> true
irb(main):003:0> speller = Aspell.new("ru_RU")
=> #
irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL
=> "normal"
irb(main):005:0> speller.check("лошадь")
=> true
But same
http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html
read and do this introductions.
As you can see, when you create a book, you collect the ids form the
other models, and then save them in the book model.
On May 3, 1:30 pm, Emeka wrote:
> This is what I am mi
7stud -- wrote:
> Julian Leviston wrote:
>> It responds to fetch just fine for me. Can you send the code and error?
>>
>
> Hey, me too!
>
Also,
class StoreController < ApplicationController
def index
session[:test] = 10
puts "**"
c = session.class
puts c
puts c
Julian Leviston wrote:
> It responds to fetch just fine for me. Can you send the code and error?
>
Hey, me too!
class StoreController < ApplicationController
def index
session[:test] = 10
puts "***"
print "[]: ", session[:test]
puts
print "fetch: ", session.f
In macvim, I started the server like this:
:Rserver
But I'm trying to debug something in my application, and I want to use
puts to output a message in the server's output window. Before
installing macvim and rails.vim, I kept a Terminal window open where I
started the server using:
/myapp$ruby
Hi,
I'm trying to rescue from a
ActionController::Session::CookieStore::CookieOverflow error... however
this doesn't work:
def some_controller_action
begin
session[:too_much] = 'toomuchinfotostore'*4000
rescue CookieOverflow
render :text => 'too much info'
end
render :text => 'wh
This is what I am missing, how to include the ids of the models that
"has_many" of book model while saving. How to make four ids along with the
book data.
Regards,
Emeka
On Sun, May 3, 2009 at 1:43 AM, gundestrup wrote:
>
> exactly what are you missing.
> What is your problem.
> A form problem
Permissions?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/05/2009, at 6:14 AM, Joe Athman wrote:
>
> I have the exact same problem. Has anyone figured out why this is?
>
> Joe
>
> On Apr 19, 11:01 pm, Petr Janda
> wrote:
>> Hi all,
>>
>> Ive just tried to r
Hey,
It's more about resources than the database. They're not one to one,
but the way most rails models are designed usually, they're very close
to a resource. For instance, you may have a product resource, which
might have an attribute called name. The data for that might not
actually be
Did you freeze on a different machine than you are now running on?
Possibly with PowerPC only and now you're running it on intel?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/05/2009, at 6:16 AM, eduardopa wrote:
>
> Hi,
>
> I recently froze the gems on a p
What platform? Use gunzip.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/05/2009, at 1:05 PM, Sergio Footenko wrote:
>
> Hello !
>
> Some time ago , I asked how to make
> pagination(http://www.ruby-forum.com/topic/185831#new), i have
> downloaded this plugin,
It responds to fetch just fine for me. Can you send the code and error?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 03/05/2009, at 12:51 PM, doug wrote:
>
> Is there something special about the session hash that would make it
> so that I can not access its asso
I'm using a Crypto.encrypt("string") to create a record for a column and
Crypto.decrypt(column) when reading and presenting it in the browser. I
do this in the controller. Can I do it in the model instead?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~
Fernando Perez wrote:
> That's not the correct way. You should:
>
> - install Ruby
> - Download rubygems and run setup.rb
> - Install Rails from rubygems with: $ [sudo] gem install rails
I wonder what is the use of rails-2.3.2.zip then? The reason I
downloaded the zip package is because my home
On May 3, 6:41 am, Me wrote:
> Is there a way to do an ajax submit but only send the values in an
> embedded form inside a form?
>
nested forms are not allowed by the html standard. When making an ajax
request you can however submit an arbitrary element to submit.
Fred
> I have to do an ajax
On May 3, 12:15 am, 7stud -- wrote:
> How do you override a helper method?
>
Same as any other method ? (although I suppose helper :all might throw
a slight spanner in the works)
Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You receive
On May 3, 4:05 am, Sergio Footenko
wrote:
> Hello !
>
> Some time ago , I asked how to make
> pagination(http://www.ruby-forum.com/topic/185831#new), i have
> downloaded this plugin, and I do not want to download this plugin every
> time when I want to create new nooby test project.
>
> My qu
On May 3, 7:55 am, holden wrote:
> I is possible to do calculations on a virtual attribute... such as
> sum, or count
>
> I tried using the same as I would on a DB column but of course that
> doesn't work. ie. Pricelist.sum(:cyberguide)
>
You're going to have to construct an appropriate sql fr
On May 3, 7:16 am, Shilo Ayalon
wrote:
>
> I read your post, which made sense. So, I moved all my requires into the
> initializer in the environment.rb file.
>
> Rails then complained that it couldn't find active record, so I added
> require 'activerecord', though it didn't seem right (rails sh
I am new in ROR . I need to design my ROR web application that support
distribute environment(different client like web client and mobile
client). I struck with the MVC model of ROR as i am J2EE developer. I
want to separate my Navigation logic ,Business logic and Database
logic. But rail archtect
Currently I'm developing a multilingual app on rails 2.2. I liked very
much the idea of Xavier Defrang to provide a locale-aware accessor for
the fields that needs a translation:
http://defrang.com/articles/2005/12/02/playing-with-rails-i18n
I modified code a little to make it work with rails 2.
I is possible to do calculations on a virtual attribute... such as
sum, or count
I tried using the same as I would on a DB column but of course that
doesn't work. ie. Pricelist.sum(:cyberguide)
I have a table with 2 fields, one with a price and the other with a
condition then have a virtual att
Sean Tay wrote:
> I've installed Ruby using the one-click installer for Windows.
>
> As said, I downloaded the zip package for RoR and unzipped it to my
> local hard disk. There is no main install.rb for RoR, but there is one
> install.rb for Actionmailer, Actionpack, Activerecord, ActiveResource
I've installed Ruby using the one-click installer for Windows.
As said, I downloaded the zip package for RoR and unzipped it to my
local hard disk. There is no main install.rb for RoR, but there is one
install.rb for Actionmailer, Actionpack, Activerecord, ActiveResource,
Activesupport. How to I
92 matches
Mail list logo