Hello,
I'm encountering a very strange issue and I've identified behavior I
don't quite understand. I have a design in which a full model exists
with sub-screens for each of the pages worth of data input. Each screen
goes through validation, and then updates the overall model with the
validated
Did u try stylesheet_link_tag(mystyle) and put mystyle.css inside
public/stylesheets ?
On Jun 23, 11:10 am, Newb Newb rails-mailing-l...@andreas-s.net
wrote:
Hi...
i used paulca-phone_codes plugin for country code.and it works.
%= f.select :country_code,
Newb Newb wrote:
Hi...
i used paulca-phone_codes plugin for country code.and it works.
%= f.select :country_code, PhoneCode.options_for_select(:prefix)%
what i want to know is how to apply css class for this.when i tried like
below it doesnot work
%= f.select :country_code,
All you really need to get started is to get your first scaffold
created.
As already mentioned the ruby on rails guides are absolutely
excellent. Congrats to those who wrote them by the way.
If you follow through the getting started guide
http://guides.rubyonrails.org/getting_started.html
It would be great if you could provide more information
- what yello icon coming up (screenshot)
- what actually doing in that page
Thanks
Srinivas
On Jun 22, 6:28 pm, Hemant Bhargava rails-mailing-l...@andreas-s.net
wrote:
Champ,
Yes i used firebug.. Seems like nothing is breaking in
Can you print the @something.frozen? in log file.
If you are getting it as true, you may have to digg @something then.
It seems not just the a record from database.
Thanks
Srinivas
On Jun 21, 1:30 am, skumar sadeeshkum...@gmail.com wrote:
Hi,
When I upgraded my rails application to rails
Hey man,
I used something like this with great success! (so far... since I just
used like few minutes ago, nothing broke and all test passed) In
Rails 2.2.2
class self
def find(*args)
args.first == :all ? self.with_scope(:find = {:conditions =
[:published = true]}) {super} : super
Hello,
Is there possible to pass arguments for serialized methods using
to_json??
I want to serialize my collection of users with income and outcome which
is calculate by methods:
collection.to_json(:methods = [:income, :outcome])
But, what if I need to pass some arguments to method :outcome ?
Please help me solve the following error message:
syntax error, unexpected tINTEGER, expecting $end
I have this model:
Code:
1. class GeoDatum ActiveRecord::Base
2. end
The database contains the table geo_data, which contains the zip_code
column, filled with zip codes. I get the
Thanks, fred !
--~--~-~--~~~---~--~~
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 from this group, send email to
I just wanted to chime in and say that I've gained utility from dale's
post and welcome posts such as this as I find them the most
interesting and thought provoking kind of posts. Before reading this
thread i would have had no idea what a Levenshtein distance is, but
now i can file that away for
Hi,
Can anyone please help me how to install Google Web Toolkit GWT_on_Rails
I have GWT v.7 latest
Ruby on Rails 2.4
Whenever I run the following command to install from the mentioned link, it
gives me error that no plugin found on this address
script/plugin install
We want to namespace our code to avoid conflicts with any framework
code. For example, we had a method called 'changed' in our models
which clashed with an ActiveRecord-based rmethod of the same name and
this led to many hours of debugging.
My research suggests it is valid to namespace models
Dear all
I want my rails web application include a timeout function using
prototype..
say, if the browser is idle for 15 mins, then it automatically redirect
to the admin/logout, where admin is my controller name, logout is the
method name.
I have google around and could not find the
On Tue, Jun 23, 2009 at 11:28 AM, Valentino
Lunrails-mailing-l...@andreas-s.net wrote:
Dear all
I want my rails web application include a timeout function using
prototype..
say, if the browser is idle for 15 mins, then it automatically redirect
to the admin/logout, where admin is my
Champ.. Installed this Tool ..
But dont know how to use it .. :'(
So take me into right direction ..
How can i know the line number.. ?
Max Williams wrote:
Hemant Bhargava wrote:
Hey Dudes,
Once again, seeking for ur help :)
Actually the thing is mine code is working fine in Mozilla/Any
Dear all
Can rails reset session if user click the back button in browser?
say,
1. go to http://myapp.com/controller
2. Search something and display the result
3. go to http://another_server.com
4. click back button, I still can see the result in browser, but I don't
want to see the browser
Thanks for your reply
I think this is not work in my case
My page uses form_remote_tag to search the result, so it display the
result without reloading the whole page...The setTimeout function will
not reset the timer if I use form_remote_tag for searching...
Any idea?
Many thanks
Valenino
Anybody knows hot to disable views caching in development on rails 2.3?
--~--~-~--~~~---~--~~
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
On 23 June, 00:19, Luciano bonach...@gmail.com wrote:
Hello Marnen,
I'm sorry for this short description!
this is the erro I got:
It looks like you're missing a gem as well. You should check what
gems are required for this project.
Robin
On Tue, Jun 23, 2009 at 12:52 PM, Valentino
Lunrails-mailing-l...@andreas-s.net wrote:
Thanks for your reply
I think this is not work in my case
My page uses form_remote_tag to search the result, so it display the
result without reloading the whole page...The setTimeout function will
not
On Tue, Jun 23, 2009 at 10:16 AM, trybeeetryb...@gmail.com wrote:
Anybody knows hot to disable views caching in development on rails 2.3?
This should already be set in config/environments/development.rb
config.action_controller.perform_caching = false
Andrew Timberlake
yasir javed wrote:
script/plugin install
http://gwt-on-rails.googlecode.com/svn/trunk/gwt_on_rails
The URL in is command is incorrect. It should be:
http://gwt-on-rails.googlecode.com/svn/trunk
The part following the URL from the project source page is intended to
be the name of the folder
Hi,
I have a strange problem:
I try to use replace_html (rjs) for replace object fields with partial
contains remote_form_for to edit the object
It works well but the inserted form is coming hidden.
(I also tried to toggle it, or show but - nothing . it stays hide)
when I try to replace the
On Jun 23, 1:08 pm, malkifel malki...@gmail.com wrote:
Hi,
I have a strange problem:
I try to use replace_html (rjs) for replace object fields with partial
contains remote_form_for to edit the object
It works well but the inserted form is coming hidden.
(I also tried to toggle it, or
Valentino Lun wrote:
Dear all
Can rails reset session if user click the back button in browser?
say,
1. go to http://myapp.com/controller
2. Search something and display the result
3. go to http://another_server.com
4. click back button, I still can see the result in browser, but I
On Jun 23, 2:51 pm, Lloyd Linklater rails-mailing-l...@andreas-s.net
wrote:
I am trying to learn rails from Agile Web Development with Rails, 3rd
Edition and am having troubles. I get an error when I try to run this
command on pg 68:
ruby script/generate scaffold product \ title:string
Frederick Cheung wrote:
On Jun 23, 2:51�pm, Lloyd Linklater rails-mailing-l...@andreas-s.net
wrote:
It means that I cannot progress past page 68. What am I doing wrong?
is that backslash there in the command you are actually typing ?
Fred
There is in the book.
--
Posted via
Lloyd Linklater wrote:
Frederick Cheung wrote:
On Jun 23, 2:51�pm, Lloyd Linklater rails-mailing-l...@andreas-s.net
wrote:
It means that I cannot progress past page 68. What am I doing wrong?
is that backslash there in the command you are actually typing ?
Fred
There is in the book.
On Tue, Jun 23, 2009 at 1:52 AM, LearnByDoing ease...@gmail.com wrote:
GeoDatum.find_by_zip_code(95035)
SyntaxError: compile error
1. class CreateGeoData ActiveRecord::Migration
2. def self.up
3. create_table :geo_data do |t|
4. t.column :zip_code, :string
I've been irresolute about who to choose for hosting for the past few
days. Right now my two favorites are Rails Playground and Blue Box
Group. Anyone have any advice or experience with them?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
I don't believe you can pass params using the methods option. One
approach would be to calculate the outcome on the collection before
calling to_json.
def calculate_outcome(arg)
@outcome = # do calculation with arg
end
def outcome
@outcome
end
collection.each {|c| c.calculate_outcome(arg)}
You might also get in touch with us as well.
* http://railsboxcar.com
On Tue, Jun 23, 2009 at 7:36 AM, Ben
Vishnyrails-mailing-l...@andreas-s.net wrote:
I've been irresolute about who to choose for hosting for the past few
days. Right now my two favorites are Rails Playground and Blue Box
I've tried moving the code around in different ways, but so far I
haven't gotten remote_function to work for me (I'm using Rails 2.3.2 on
my Mac). I want to make an AJAX call when I double-click a word on my
page, and the Javascript function is being called when the ondblclick
event is fired,
I use render_to_string to generate short reports (in HTML) under
certain conditions when users access my application. The reports are
stored in the database and uses database information at the time they
are generated (and can thus not be generated later, e.g; when you want
to consult them). The
say, if the browser is idle for 15 mins, then it automatically redirect
to the admin/logout, where admin is my controller name, logout is the
method name.
To get it to only log them off if the browser has been idle for 15
minutes you could create a javascript listener. The easiest way would be
On Jun 23, 9:52 am, LearnByDoing ease...@gmail.com wrote:
Please help me solve the following error message:
syntax error, unexpected tINTEGER, expecting $end
Looks like you have a type column (which activerecord uses for single
table inheritance) but you're actually storing data (such
Nayeem,
I'm sorry you've not found a VPS provider that can help you in your
learning curve. I've been amazed how helpful BlueBoxGroup -
http://www.blueboxgrp.com/ has been for me!
Even though I have only one VPS with 1 meg RAM these people treat me
as though we're partners. They answer my
Ben Vishny wrote:
// idle.js
// Adapted from
//
http://www.andrewsellick.com/67/simple-javascript-idle-state-using-//prototype
// 15 min in ms
var idleTime= 90;
var timeOut = ”;
function init() {
new Ajax.Request('/login/inactivity?do=check',
{asynchronous:true,
I've just started a new project using the twitter gem
http://twitter.rubyforge.org/ I've managed to authenticate a user and
create an object out of it. Then I've pulled that user's timeline and
created an array out of their tweets. Now I'd like to find a way to
parse specific information out of
Hi,
I am puzzlin for quite a while on this. I use find_by methods to retieve
AR objects. In some cases find_by will return nil if there is no match.
However I would like to have find_by return a default object instead.
Is there a way to overload that particular find_by method? Or whats the
best
Sandip Ransing wrote:
Marven,
If you're going to use my name, please spel it correctly. :)
Thanks for your reply !
I think, you missunderstood what i am saying.
Let me explain little deep.
Suppose, I have rails application as a product,
I wanted to deploy it for many clients.
They
I am puzzlin for quite a while on this. I use find_by methods to
retieve
AR objects. In some cases find_by will return nil if there is no
match.
However I would like to have find_by return a default object instead.
Is there a way to overload that particular find_by method? Or whats
Hi all,
Consider the following models:
class Sheep AR::B
belongs_to :herd
def some_virtual_attribute
#returns something sortable
end
end
class Herd AR::B
has_many :sheep do
def some_method
#do something useful
end
end
end
I want to be able to do:
Lee wrote:
We want to namespace our code to avoid conflicts with any framework
code.
I don't see how this will help. Each model is *already* its own
namespace, so further namespacing them won't make a difference in this
regard.
For example, we had a method called 'changed' in our models
khagimoto:
Another +1 for Slicehost.
On Jun 22, 1:16 pm, khagimoto kumi.hagim...@gmail.com wrote:
I know similar topics have been covered before, but I'd like to get a
more up-to-date Ruby developer's opinions. (Please note that I've
read similar threads in this group and read a lot of
I can upload an image to mysql database, but can´t render it on HTML
page.
I wrote the following acording to many snipets founded on the web.
Inside the controller (classified_controller.rb):
def imageload
@image = Classified.find(params[:id])
send_data (@image, :filename =
Thanks Philip. I used something similar to your suggestion
Model.find_by_foo() || Model.get_default(). I#d rather be explicit on
that.
Jens
If it were me I'd either make it explicit in the code
Model.find_by_foo() || Model.get_default() or extend AR to support
find_by_xxx_or_default and
If I have information in a legacy database will I be losing anything
by using RoR. Can I store configuration information in mysql but
display data from my legacy database?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
You're missing the rubyzip gem.
--Matt Jones
On Jun 23, 8:13 am, Luciano bonach...@gmail.com wrote:
Sijo,
thanks for your advice, I installed Rails 1.2.3
but I think Robin is right, I must install some missing gems, I am
still getting those gems errors...
thanks to all you guys!
I can vouch for the quality of Boxcar. Great performance, stability
and support. I've been with these guys since Rails 1.0 and not a bit
of a problem.
--steve
On Jun 23, 2009, at 7:36 AM, Ben Vishny wrote:
I've been irresolute about who to choose for hosting for the past few
days. Right
What you're attempting here is equivalent to a DRM system; or in
simpler terms, giving someone a lock and the key and expecting that
the lock will provide protection.
The code's got to be run somehow, and if the clients control the
server, they can get at it. Encrypted source files can be
Have you tried explicitly setting the URL to post to in the form_for?
From the trace, it looks like it's trying to generate a route to
edit_full_quote_ho without specifying the parent model.
[...@full_quote_ho_model, @full_quote_ho] might work as well.
--Matt Jones
On Jun 23, 2:02 am, Ahad
I need to write a method such that when we pass on a string to it, it
returns a substring out of it. returned string is such that it
consists of numerals only. All the characters other than numerals are
stripped away.
e.g.
2009-05-30 10:25:15 UTC == 20090530102515
I have written the following
thank you very much Matt!
[]s
Luciano
On Jun 23, 2:17 pm, Matt Jones al2o...@gmail.com wrote:
You're missing the rubyzip gem.
--Matt Jones
On Jun 23, 8:13 am, Luciano bonach...@gmail.com wrote:
Sijo,
thanks for your advice, I installed Rails 1.2.3
but I think Robin is right, I
Sandip,
I never used it myself but http://www.rubyencoder.com/ seems to be what
you're looking for. It's not free but is not that expensive and they
have a free trial.
Would you mind giving some feedback on the forum if you try it?
Paolo
Sandip Ransing wrote:
Marven, Thanks for your reply
On Jun 23, 6:37 pm, Vipin sh.vi...@gmail.com wrote:
I need to write a method such that when we pass on a string to it, it
returns a substring out of it. returned string is such that it
consists of numerals only. All the characters other than numerals are
stripped away.
e.g.
2009-05-30
Take a look at http://www.linode.com. I have two sites (with quite low
traffic): http://cuisine4you.net and http://pragdevnotes.com on it
without any problems. One possible drawback is that you have to set up
everything from scratch. On the other hand you have full control over
your virtual host.
I'm new to cookies and rails so I apologize for my ignorance. I'm
using Javascript to store persistent cookies using the following code
(taken from the O'Reilly Javascript book):
Cookie.prototype.store = function( daysToLive, path, domain, secure )
{
var cookieval = ;
for ( var prop in
All,
I'm looking at possibly working on an e-commerce site prototype which
will require all of the standard elements (product management, shopping
cart, hooks to payment, etc.), and I was wondering if anyone had any
recommendations or info. on starter app type things in this area. I'm
not
er, Rails based :).
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
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
timr wrote:
Here is a third proposal--What about breaking the text into chunks--
one-word fragments, two-word fragments, three-word fragments and then
doing a subtraction of one array of fragments from the other
(fragments generated from 2nd sentence)? A perfect match would leave
an empty
Hi everybody,
I have the following problem:
My model 'event' has many 'eventdates'. I use a nested form to edit
these events and its eventdates. Everything gets updated using js,
which works fine.
def update
@event = Event.find(params[:id])
respond_to do |format|
if
A few more details:
- I don't have any other cookies for the domain
- There is not an underscore in the domain/subdomain
- My privacy setting are at their lowest (accept all cookies)
- The cookie is there and accessible until I close the browser and
restart
- I'm sure there's a simple Rails
Hello!
I use MySQL and making sure it is UTF-8 and in my view the character
set is also UTF-8. But when I display the text whose input came from
either an antiword.exe or WIN32OLE output of a MS Word document in a
textarea. Text fail to show immediately after a strange character that
shows up in
You could try...
require 'iconv'
clean_str = Iconv.new('UTF-8//Ignore', 'UTF-8').iconv(messy_str)
It doesn't always work though... you might need to catch
Iconv::InvalidCharacter...
Worth a try though and has gotten me out of some of this mess with bad
source data.
On Jun 23, 2009, at
Ok, found the problem. The submit-event wasn't captured anymore.
Thanks for reading.
On 23 Jun., 21:48, Adrian D adrian.debbe...@googlemail.com wrote:
Hi everybody,
I have the following problem:
My model 'event' has many 'eventdates'. I use a nested form to edit
these events and its
Thanks a lot Robert, it worked. I was missing the space...:)
On Jun 24, 12:49 am, Robert Walker rails-mailing-l...@andreas-s.net
wrote:
yasir javed wrote:
script/plugin install
http://gwt-on-rails.googlecode.com/svn/trunk/gwt_on_rails
The URL in is command is incorrect. It should be:
Nothing needed in the controller, in your view, you do the following:
%= link_to link.title, link.url, :popup = true %
So link here is the object with attributes title and url. You can
hard-code these if you want, but in my application I store them in the
database so an example of hard-coded
I don't have experience with either of the two solutions you mentioned
but I currently moved my hosting from hostingrails.com to
slicehost.com. Both places I had a VPS and they are both sub $25. Very
happy with both providers, moved purely on a price issue. Slicehost
VPS is $20/month
What are the field names for your classifieds table?
On Jun 23, 12:27 pm, Caiuby Freitas rails-mailing-l...@andreas-s.net
wrote:
I can upload an image to mysql database, but can´t render it on HTML
page.
I wrote the following acording to many snipets founded on the web.
Inside the
On Jun 23, 5:59 pm, jmDesktop needin4mat...@gmail.com wrote:
If I have information in a legacy database will I be losing anything
by using RoR. Can I store configuration information in mysql but
display data from my legacy database?
That really depends on what database it is. However,
pardon. i just realised it works. thanks
On Jun 24, 12:54 am, twittwit ytbr...@gmail.com wrote:
hello,
i tried using html_helpers and it doesn't seems to work properly on my
pdf.prawn( prawnto)
does anybody know other way to decode utf-8 string ?
cheers
bryan
Thanks Phillip for your help!
I just tried it and it works great! It display that dot thing. But
then because all of my regular expressions did not account for these
characters and some fail at where these characters appear.
1 - What do I know even what the right question to ask is... But what
hello,
i tried using html_helpers and it doesn't seems to work properly on my
pdf.prawn( prawnto)
does anybody know other way to decode utf-8 string ?
cheers
bryan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Cucumber is a framework for writing and executing high-level
descriptions of your software’s functionality. Cucumber plays a
central role in a development approach called Behaviour Driven
Development (BDD). BDD in its grandest sense is about communication
and viewing your software as a system
Hi
I'm using passenger + apache.
with this combination, how can I start my ruby script on server's
reboot?
now I type ruby myscript.rb run whenever server reboot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Tue, Jun 23, 2009 at 4:47 PM, serenobs seren...@gmail.com wrote:
how can I start my ruby script on server's reboot?
Like anything else -- invoke it from a script in /etc/init.d .
(That is, of course, assuming *nix -- Windows, no idea)
--
Hassan Schroeder
All,
Wants the current State of the Union wrt in-place editing and Rails 2.2
or ? Are folks using the in_place_editor plugin? SuperInPlaceControls
(http://os.flvorful.com/super_in_place_controls)? Rolling your own?
Getting ready to dig in for a new project and just wanted to see what
the
Hello -
I'm trying to have an account information and link bar at the top of the
screen, i.e:
ch...@example.com | My Profile | Logout
This bar should be up there even when the user is on a cached page (the
app I'm working on has a lot of database-intensive screens, which
luckily are
Just for the record I did figure out how to resolve this issue. I was able
to resolve it by adding the following to my apache vhost file before the
normal proxy rewrites.
RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)
What happened to asking people to subscribe to RSS feeds?
http://skitch.com/robbyrussell/bie2d/google-groups
Don't get me wrong, I enjoy the content... but not sure why blog posts
are getting auto-posted on a mailing list.
Robby
On Tue, Jun 23, 2009 at 4:23 PM, sbinsiderr...@pageonepr.com
Hi pharrington !!!
Thanks for your reply :)
It's very true this is the doc that I was looking for.
The unfortune is that when I look for create_table, the link is
this:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M002191
Again, thanks a lot :)
On
Hi Frederick.
Thanks very much for the tip about docrails ;)
On Jun 22, 4:35 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jun 22, 2:53 am, pharrington xenogene...@gmail.com wrote:
On Jun 21, 9:12 pm,Eric Fereric@gmail.com wrote:
Hi everyone.
I was looking for a
Hi,
I've got an app that I've inherited that uses Active Scaffold. I've
never used it before, but am now seeing errors on a page that appear to
point to that plugin.
The system is Ubuntu using Ruby 1.8.7. I already found a work around
for attachment_fu using this Ruby version. Is there
Hi everyone,
Could you give me an detail example how can I call rake task from
controller in Rails project?
Best regards,
Leakhina
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Tue, Jun 23, 2009 at 2:02 AM, Sandip Ransingsan2...@gmail.com wrote:
Marven, Thanks for your reply !
I think, you missunderstood what i am saying.
Let me explain little deep.
Suppose, I have rails application as a product,
I wanted to deploy it for many clients.
They have their own
Matt Jones wrote:
Have you tried explicitly setting the URL to post to in the form_for?
From the trace, it looks like it's trying to generate a route to
edit_full_quote_ho without specifying the parent model.
[...@full_quote_ho_model, @full_quote_ho] might work as well.
--Matt Jones
could you be creating invalid html (eg a form nested in another form
or something like that) by inserting yourpartialin the precise
location that you are ?
Fred
no, It's a plain table , each row is an object.
And I try to replace the fields of the object with little remote_form
with
Hi
This is just an example .I have a model Person with fields
first_name, last_name
And after entering some records to the people table I tried the sql
Person.find(:all,:select = first_name,#{first_name+last_name} as
full_name)
But this is not working Could anybody please tell how can I
I need to return list of objects(e.g. users, articles etc) through
ActionWebService::API::Base
class BabyWiseApi ActionWebService::API::Base
api_method :is_new_update_available,
:expects = [{:login=:string},
{:lastUpdatePerformed=:date}],
:returns = [:boolean]
91 matches
Mail list logo