Hi all,
I need to append the headers to specific attributes within a form from
an imported csv file, for example; I have a model which contain only
:name field but csv file contain firstname and last name (csv files
are submitted by user ,so there is no control over file format ) CSV
file may
How to apply layouts in pop up windows
--
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-t...@googlegroups.com.
To unsubscribe from this group, send
require 'faker'
require 'populator'
require 'date'
Dbase.destroy_all
User.destroy_all
Table.destroy_all
100.times do
u = User.new
u.username = Faker::Internet.user_name
u.email = Faker::Internet.email
u.password = test
u.password_confirmation = test
u.save
end
I am using the Faker
If you want to go onto the animated gif direction, i believe the only option
you have is to look at ImageMagick and RMagick, but this is not trivial stuff.
On the other side, Javascript and modern browsers (like Safari and FireFox) can
help you with something like :
a=0;
thanks Brijesh Shah
please let me know how to login to the host monster web server
console.
nirosh
--
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-t...@googlegroups.com.
To
You should ask them to create you an SSH account. After that, it
depends of your OS for how to login. If you are using windows,
download putty, else in OS X or linux you can login directly from the
console
On Apr 29, 10:20 am, nirosh kunalan.kand...@gmail.com wrote:
thanks Brijesh Shah
ok thanks.
Regards
Kunalan Kandiah | System Admin/Web Developer
RayMax Media 87/4, Arcot Road, Vadapalani, Chennai - 60 026, India.
Phone +914 442 031 974 | Direct +919 566 236 108 | Skype r.k.kunalan |
http://www.raymax.in
On Thu, Apr 29, 2010 at 1:06 PM, Yiannis istoseli...@gmail.com wrote:
Hi
I have a Student table with 30 columns in it.
My question is at what database size, would the query performance be
affected?
We are actually planning to have a ArchivedStudent table(which has
exactly the same structure as that of Student table) so that when
student graduates, his record can
MY Jquery validation conflicting with scriptocolos ...do anyone have
solution for this?
--
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-t...@googlegroups.com.
To unsubscribe from this group,
I am an independent recruiter and have solid relationships with the technical
leadership in companies in the web 2.0 space. Right now, I'm looking for three
top engineers for two different companies (these companies want to hire now)
for the following roles:
Client One
Two roles:
I just
Hi,
I have a server behind a firewall and I can't hit the Internet from
there. I can remote control the server, but not download anything from
the Internet.That means the standard gem install rails -v 2.3.4
command will not work.
How does one download the 2.3.4 update and install it locally
Location: San Francisco, CA or Wilmington, DE
Fort Hill is a technology firm specializing in optimizing learning
transfer and behavior change in the field of executive and leadership
development. Our flagship software-as-a-service product enables
Fortune 500 companies to transform the way they
Same here, we are now down for our second full day. Our environment
is pointing to code from 2008 in our largest locations. I've
screamed, yelled and have gotten nowhere. My developer is now 11
hours in at $50/hr and we aren't any closer. Still can't get the
environment correct.
I just gave
On Apr 29, 1:57 am, Joshua Partogi joshua.part...@gmail.com wrote:
Hi all,
This is a rather basic question about connection pooling in ruby on
rails. In rails we can define the connection pool in database.yml. I
assume it is quite safe to hardcode this value for intranet
application since
I found the solution.var j=jQuery.noConflict();
reference
http://zenverse.net/jquery-how-to-fix-the-is-not-a-function-error-using-noconflict/
--
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
What is the error msg you are getting ?? ang what is the os?
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Noone using CanCan day-to-day then? Ho hum... back to Aegis.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Hi,
I'm creating a rails app which requires an authentication system based
on an Access Control List.
Basically I have a User model associated to a Role model where every
user has one and only one role.
The problem I'm facing right now is with the creation of new users and
validation. The role
Indeed, hostingrails is the worst rails hosting company available. If
you want to try the worst, try hostingrails.
On Apr 28, 11:25 pm, schag...@gmail.com schag...@gmail.com wrote:
Same here, we are now down for our second full day. Our environment
is pointing to code from 2008 in our
Hi,
I recently started using UUID and now i wanted to use it along
with Authlogic.Did any body using these both together? Please help me
Thanks Regards,
prem
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
Guyz,
How to retain form data while redirecting back to same page? i do not
want to work with sessions option. Any other way ..? I mean i am
creating a record and after hitting submit button one of my validation
failed and the form redirects to the same page where i have to fill the
form values
Hi,
I want to collect users paypal account. Verify if its a paypal account
Pay user at anytime.
Paypal account is the email which the user has registered with paypal.
Is there any way to verify if the email given by user, is registered
with paypal(ie. the email provided should be the users
It entirely depends on your query. If you are just finding by ID, then it's
likely to be in the 7 figure range (10,000,000+).
If you're doing complex joins and searches within strings, then you'd need
to test it.
The short answer is test it! It's easy enough in script/console to quickly
insert
hii
i have my ror app website want to do destroy session on browser
close ,
please help how can i destroy..
i have used javascript function on body unload
function bunload()
{
document.location.href=del.rb;
}
/script
/head
body onunload=bunload()
and i have putted the del.rb file in my
Hi all,
I have a relationship in this form: A person belongs to an address and a
address can have many persons like below:
class Person ActiveRecord::Base
belongs_to :address
end
class Address ActiveRecord::Base
has_many: persons
end
The ideia behind this is, if two or more persons share
Ruby files aren't evaluated when they are in the Public folder, their contents
are just returned to the user. You would need to have it call a controller
action to run code.
On Apr 29, 2010, at 8:01 AM, Rahul Mehta wrote:
hii
i have my ror app website want to do destroy session on browser
It is definitely routing problem.
I could partially solve the problem by adding this:
map.connect 'login', :controller = 'login', :action = login_page
map.connect 'login/list_users', :controller = login, :action =
list_users
map.connect 'login/add_user', :controller = login, :action =
hiii
thank for reply.
can u help me how to run logout action of controller user on
window.location.href..
thanks
rahul
On Thu, Apr 29, 2010 at 5:45 PM, Niels Meersschaert
nmeersscha...@mac.comwrote:
Ruby files aren't evaluated when they are in the Public folder, their
contents are just
hiii niels
thank for reply.
can u help me how to run logout action of controller user on
window.location.href..
thanks
rahul
On Apr 29, 5:15 pm, Niels Meersschaert nmeersscha...@mac.com wrote:
Ruby files aren't evaluated when they are in the Public folder, their
contents are just returned
Hemant Bhargava wrote:
Guyz,
How to retain form data while redirecting back to same page? i do not
want to work with sessions option. Any other way ..? I mean i am
creating a record and after hitting submit button one of my validation
failed and the form redirects to the same page where i
TechSlam wrote:
Hi
I have a Student table with 30 columns in it.
My question is at what database size, would the query performance be
affected?
Depends on how well, or poorly, crafted the query is? Do you have the
appropriate indexes defined to support your query? There are numerous
If you do have access to webpages in a webbrowser, it should also work for
gem updates by setting up the http proxy server used.
Ask your IT department for the proxy used, or you could perhaps find that in
your browser.
In e.g. Firefox I find it in Tools-Options...-Advanced-Network-Settings
In my
On Apr 29, 1:33 am, Ben Woodcroft li...@ruby-forum.com wrote:
I'm unsure whether Sharagoz was referring to was writing a find_by_sql
statement or merely the 'whole' of the :joins string. Unless there is
something I'm missing, I don't think writing out a :joins SQL string is
the solution
You need to add another loop for the cards:
% @collections.each do |collection| %
% collection.cards.each do |card| %
li%= card.title %/li
--
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
Thx I figured it was something that simple
On Apr 29, 7:30 am, Tim Shaffer t...@tim-shaffer.com wrote:
You need to add another loop for the cards:
% @collections.each do |collection| %
% collection.cards.each do |card| %
li%= card.title %/li
--
You received this message because you are
Robert Walker wrote:
Hemant Bhargava wrote:
Guyz,
Controllers typically do not redirect upon validation failures. If you
simply render the page again your form data will be available and the
Rails framework will kindly repopulate the form fields for you
automatically.
If you want to
up
On Mar 30, 6:21 pm, Adrien Coquio adrien.coq...@gmail.com wrote:
Should I notify this bug somewhere ?
(I hope so!)
adrien
On Mar 28, 2:24 pm, Adrien Coquio adrien.coq...@gmail.com wrote:
Hi,
I want to send a file joke.txt with ActionMailer but I want to
rename the file in the
up
On Mar 26, 10:53 pm, Adrien Coquio adrien.coq...@gmail.com wrote:
Hi,
I use ar_mailer to send emails from my application.
I want to build a page where the admin case see the queue of mails and
the possibility of remove some mail in the queue if he wants.
The email in the queue are save
Hi, I pretty much had the same issues reported here, especially after
the upgrade on some servers.
The question is: what RoR hosting provider would you suggest ? I've
heard good things about site5, and was myself a happy Lunarpages
customer but I left because at the time they were not supporting
Hi,
When I try to add generator to controller, I got error as Missing the
Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your
RAILS_GEM_VERSION setting in config/environment.rb for the Rails version
you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version
On Tue, Apr 27, 2010 at 4:07 PM, Joshua Martin josmar52...@gmail.com wrote:
I have a datetime field in the database. How do I find records for a
particular date regardless of the time of day?
The method I'm trying does not work.. tasks.find(:all, :conditions = [date
== ?, Date.today])
You
On Wed, Apr 28, 2010 at 5:06 PM, Daystrom daystroml...@gmail.com wrote:
I have a server behind a firewall and I can't hit the Internet from
there. I can remote control the server, but not download anything from
the Internet.That means the standard gem install rails -v 2.3.4
command will not
I have been developing some interactive SVG running under WEBrick.
Works fine until the site goes under SSL. At that point my Javascript
code fails to return a document using either contentDocument, or
getSVGDocument(). I don't really understand the fix, but following a
hint from a list back in
On Thu, Apr 29, 2010 at 1:26 AM, Veena Jose li...@ruby-forum.com wrote:
Hai Rick,
I have made the change you hav told. Still the join table is not been
populated.
These are my migration data.Is there any problem with this?
.
class
Jochen Kaechelin wrote:
Am 23.11.2008 um 15:09 schrieb Frederick Cheung:
That's the problem. Acts as taggable on steroids defines its own Tag
class, your tag class doesn't have all the methods that one has.
Ok, thanx! That was the problem great!
Really strange. I had the same
Hey,
I was just wondering if anyone had a more in depth concept on how the
Kaboodle Bookmarklet works or how to mimic the concept.
I know there would be some sore of page scraping. I've tried the
Kaboodle bookmarklet on many different pages and not all pages have
descriptive identifiers in the
Jonathan Rochkind wrote:
Is this a bug? Or is this expected behavior? Is there something I'm
missing? Under what circumstances is the cached file supposed to be
regenerated? If the last-modified timestamp changes on one of the
included files, will it be regenerated? Will it EVER be
Robert Walker wrote:
Jonathan Rochkind wrote:
Is this a bug? Or is this expected behavior? Is there something I'm
missing? Under what circumstances is the cached file supposed to be
regenerated? If the last-modified timestamp changes on one of the
included files, will it be regenerated?
what abt the datacase settings??
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Hi,
When I try to add generator to controller, I got error as Missing the
Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your
RAILS_GEM_VERSION setting in config/environment.rb for the Rails version
you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version
Hi,
I am following the instructions on
http://github.com/binarylogic/authlogic_example#readme,
specifically, the Tutorial How to create this app ...
section:
Step 1 of the tutorial contained three sub-step which I identify here
Step 1/a,b and c.
The details of these steps and
badnaam wrote:
I register ajax listeners in my application.js in the dom:loaded
function. In some of my views I also need to use the dom:loaded event
to do other javascript stuff. Since I already have my dom:loaded in
application.js, can I specify another dom:loaded in the script tag in
my
What error do you get when you run gem install rails from the
command line?
On Apr 29, 12:49 pm, apr apr li...@ruby-forum.com wrote:
Hi,
When I try to add generator to controller, I got error as Missing the
Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your
RAILS_GEM_VERSION
Is it possible to do a find all, and then return the # of items?
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
David Zhu wrote:
Is it possible to do a find all, and then return the # of items?
Better to use the built-in aggregate functions.
http://railsapi.com/doc/rails-v2.3.5/classes/ActiveRecord/Calculations/ClassMethods.html#M001357
This will perform the count in SQL and will be much more efficient
Have you tried mini_fb? http://github.com/appoxy/mini_fb
@fb = MiniFB::Session.new(FB_API_KEY, FB_SECRET, @fb_session, @fb_uid)
http://github.com/appoxy/mini_fb@fb.call(photos.upload,
filename=full path to file)
Travis
On Wed, Apr 14, 2010 at 10:31 AM, melissa moreno
On Apr 29, 2010, at 2:01 PM, Robert Walker wrote:
David Zhu wrote:
Is it possible to do a find all, and then return the # of items?
Better to use the built-in aggregate functions.
http://railsapi.com/doc/rails-v2.3.5/classes/ActiveRecord/Calculations/ClassMethods.html#M001357
This will
I used SQL Server 2005 for 18 months for a rails application. I recall
having to use both freetds and unixodbc to get the connection to work.
I'm a little hazy on this, but I think one is a higher level
communication protocol, and one is a lower level communication
protocol. Google the rest if it
I'm trying my best to follow the skinny controller/fat model concept,
and I've got a series of callbacks (that I'm about to move into
observers) running on a few models. Based on what these callbacks do
to the data (it's implementing business rules), I'd like to add some
type of message on the
hi i have setup my rails env on hostmonster but i cant run rake
task.error is populated when try to run that
the error is Access denied for user . But i can able to login into
the mysql with the same user name password.
anybody any ideas
nirosh
--
You received this message because you are
Sounds like they don't have your SSH account setup correctly
Sent from my iPhone
On Apr 29, 2010, at 6:08 PM, nirosh kunalan.kand...@gmail.com wrote:
hi i have setup my rails env on hostmonster but i cant run rake
task.error is populated when try to run that
the error is Access denied for
thanks jason i'll talk to them and get back to u.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
I early Rails 2, I wrote code in my show.erb.html file like this:
% display_qs_body(binding) %
display_qs_body was in a helper file and it passed binding along and
used (as I recall) concat(binding, text). concat changed so you no
longer passed binding somewhere later in Rails 2.
I came
I'm trying to display a generated .png plot via send_data(), but it
results in a server error invalid byte sequence in US-ASCII error.
I'm pretty sure this means that I need to specify the encoding
somewhere, but I haven't been able to figure out where or how to do so.
Some particulars:
I'm
Woops, I posted a severely outdated environment list:
WinXP-Pro/SP3, Ruby 1.8.2-15, Rails 1.1.6, Gem 0.9, MySQL 5.0.27-nt,
SciTE 1.72, AuthLogic gem, FireFox 2.0.0.4
The correct environment list is (I think):
WinXP-Pro/SP3, Ruby 1.8.2-15, Rails 2.3.5, Gem 0.9, MySQL 5.0.27-nt,
SciTE 1.74,
hi guys,
I have been trying to install Rmagick on ubuntu karmic koala for a
day.
Yes, ImageMagicK has already been installed and works great with
paperclip and a few other perl scripts I have (which uses
Image::Magick).
The following is what the execution looks like when I tried to
install
I seem to remember something similar when I was installing it on Karmic
ages ago.
If you go look in the mkmf.log that it talks about (can't remember where
it is located) it indicates what the problem was. Mine was to do with
other libs that needed to be installed. Things like
Hi,
thank you for reading my post. I've got s simple question: What's the
correct technical term for data which IS NOT calculated and data which
IS calculated regarding database design.
Simple example: saving a user message in a corresponding table vs.
counting all messages of a user.
If you
hi, Simon,
1. when I checked mkmf.log, there were no errors but a bunch of yes
2. don't know why but i cannot find the mkmf.log file now
--
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
then I am out of ideas, sorry :)
On Fri, 30 Apr 2010 08:17:16 +0800, ct9a anexi...@gmail.com wrote:
hi, Simon,
1. when I checked mkmf.log, there were no errors but a bunch of yes
2. don't know why but i cannot find the mkmf.log file now
--
You received this message because you are
it's ok. I will keep trucking.
thank you :)
any ideas, guys? :)
On 30 April 2010 10:22, Simon Macneall macne...@gmail.com wrote:
then I am out of ideas, sorry :)
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
I have a legacy e-commerce app that's got about 12,000 inventory items
in it, including pairings between items in one model to items in
another. There's no way we'll have the manpower to manually add all
those items and their pairings again (ah cannah dew ih, cap'n!), so
I'm hoping to write a
hi guys,
I looked around.
I am running ruby 1.9.1.
Found this (http://forum.clockingit.com/discussion/381/) and it said Ruby
1.9.1 isn't supported at all, so please try 1.8.x instead..
That post was posted on Mar 2nd 2009.
Has this compatibility problem been resolved?
Any ideas?
--
You
hi guys,
I looked around.
I am running ruby 1.9.1.
Found this (http://forum.clockingit.com/discussion/381/) and it said
Ruby 1.9.1 isn't supported at all, so please try 1.8.x instead..
That post was posted on Mar 2nd 2009.
Has this compatibility problem been resolved?
Any ideas?
--
You
Thank you all, so very much, for your great, thoughtful posts and solid
advice. You all have excellent points. I've decided to take your advice
as wise council, and stick with the single-table model. :)
Hi,
if you find you *DO* have to shard in your application, then I used
the approach:
I found an authlogic newsgroup: http://groups.google.com/group/authlogic.
I cross-posted this question there.
On Apr 29, 4:08 pm, RichardOnRails
richarddummymailbox58...@uscomputergurus.com wrote:
Hi,
I am following the instructions on
can any one help me.
i created one application to track the people opening the mails which is
send by me from my application. but one problem which became an
obstacle in my path is when any use say tony opens that mail once
his count in db is one,but his count will not increment when
Assuming you have a named_route for your logout action, you could try
function bunload() {
document.location.href=%= logout_path %;
}
However, I would point out that unload isn't guaranteed to be called
is even less likely to call wait to load a new resource so that you
can kill the session.
78 matches
Mail list logo