Hi,
I want embed youtube video in my rails application, I'm using rails
1.2.6, will you suggest the links.
I've tried from so many sites, nothing is working.
example sites:-
https://github.com/miggy/acts_as_video_fu
http://www.railslodge.com/plugins/1214-acts-as-video-fu
Probably because you are using rails 1.2.6 which is pretty old version
of rails.
On Feb 8, 2:07 am, Deepika Vummiti li...@ruby-forum.com wrote:
Hi,
I want embed youtube video in my rails application, I'm using rails
1.2.6, will you suggest the links.
I've tried from so many sites, nothing
cielo wrote in post #1044684:
Probably because you are using rails 1.2.6 which is pretty old version
of rails.
Is there any solution to solve this, anyone please guide.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
On 8 February 2012 08:54, Deepika Vummiti li...@ruby-forum.com wrote:
cielo wrote in post #1044684:
Probably because you are using rails 1.2.6 which is pretty old version
of rails.
Is there any solution to solve this, anyone please guide.
AFAIK embedding a Youtube vid is a case of adding an
Hi Peter
I understand ... I dream about a format Date + am:pm ! ( created
in the morning or created in the afternoon...) LOL
more, I need Time actually I need to split events into morning /
afternoon events ( half day am:pm )
projects have half-day tasks only..
I found very useful
Hi!
Try to follow Jefrey tip. Because he said that mysql adapter returns
ASCII-8bit.
You must use
adapter: mysql2
Regards,
Everaldo
On Tue, Feb 7, 2012 at 9:10 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
Ok, I put the encoding: utf8
development:
adapter: mysql
encoding:
On 8 February 2012 00:36, Don don.leat...@gmail.com wrote:
Heroku is the easiest to use and should be good for what you describe.
However, you will want to make sure you research, in detail, the database
situation. Heroku is now forcing the use of Postgres for production
deployment, in
On 8 February 2012 07:12, Bob Smith bsm...@gmail.com wrote:
I need a way to set a counter that will show how many of the model
have been created and put this in each instance. This will allow me to
use the record number as an input to another field before id is set.
After things are settled,
Installed uploadify_rails3 gem, while submiting the form all params
are correct but I am getting error
Completed 401 Unauthorized in 0ms which prevents me from doing any
further steps.
If any of you has faced such situation please send me any solution to
get rid of it.
Thanks in advance
--
You
Im currently new in rails and using v 2.3.11
I would like to ask if how can I query entries without including their
duplicates?
class CreatesStudent ActiveRecord::Migration
def self.up
create_table :students do |t|
t.string :first_name
t.string :middle_name
t.string
On 8 February 2012 08:19, Jade Zallao jadezal...@gmail.com wrote:
Im currently new in rails and using v 2.3.11
I would like to ask if how can I query entries without including their
duplicates?
Have a look at the uniq query method. See the Rails Guide on
ActiveRecord Query Interface and
You can use also after_initialize checking if the counter is already setted
after_initialize :set_counter
def set_counter
self.counter ||= ModelName.all.count
end
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion
On 8 February 2012 11:05, grentis gren...@gmail.com wrote:
ModelName.all.count
Please don't *ever* do this.
If you want a count of all the objects in a table, use
ModeName.count. Using .all.count will instantiate an array of all
of the objects just to do a count of the array... this could be
Ops, sorry...I don't know why I add .all :(
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/eOhjjXJLtU8J.
To post to this group, send email to
On 08.02.2012, at 13:39, Colin Law wrote:
On 8 February 2012 07:12, Bob Smith bsm...@gmail.com wrote:
I need a way to set a counter that will show how many of the model
have been created and put this in each instance. This will allow me to
use the record number as an input to another field
Hi, everybody!
Are you going to RailsConf?
--
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
On 08.02.2012, at 15:05, grentis wrote:
You can use also after_initialize checking if the counter is already setted
after_initialize :set_counter
def set_counter
self.counter ||= ModelName.all.count
end
Imagine 'create' action.
During the period from the instance is initialized:
On Wed, Feb 8, 2012 at 10:39 AM, Colin Law clan...@googlemail.com wrote:
On 8 February 2012 07:12, Bob Smith bsm...@gmail.com wrote:
I need a way to set a counter that will show how many of the model
have been created and put this in each instance. This will allow me to
use the record
Hey,
I'm not sure I fully appreciate the best use(s) for Rack apps (e.g.,
Sinatra apps) in a Rails (3.1) application...
Scenario: I have in mind a bunch of RESTful controller actions linked
to models -- all for providing an API.
Approach 1: handle each resource from its own mounted Rack app:
+
On Wed, Feb 8, 2012 at 10:02 AM, Erwin yves_duf...@mac.com wrote:
Hi Peter
I understand ... I dream about a format Date + am:pm ! ( created
in the morning or created in the afternoon...) LOL
That would be:
am = DayTimeRange.new(00:00 until 12:00)
pm = DayTimeRange.new(12:00 until
Jade Zallao wrote in post #1044699:
Im currently new in rails and using v 2.3.11
I would like to ask if how can I query entries without including their
duplicates?
class CreatesStudent ActiveRecord::Migration
def self.up
create_table :students do |t|
t.string :first_name
On 8 February 2012 13:21, Robert Walker li...@ruby-forum.com wrote:
Jade Zallao wrote in post #1044699:
Im currently new in rails and using v 2.3.11
I would like to ask if how can I query entries without including their
duplicates?
class CreatesStudent ActiveRecord::Migration
def
Colin Law wrote in post #1044737:
I had assumed (quite possibly wrongly) that the OP wanted to find, for
example, all unique last_names, for example, in which case I think he
could do something like
Student.select(:last_name).uniq
but if this is not the case then Robert is correct.
That
Hello,
I recently wrote a new gem called realtime-validations. It is now
covering our use case, but it sure can be improved, and I will
personally improve and maintain it if there are unmet needs for any of
you.
- Purpose
- Validate user input at client-side
Everaldo Gomes wrote in post #1044692:
Hi!
Try to follow Jefrey tip. Because he said that mysql adapter returns
ASCII-8bit.
You must use
adapter: mysql2
Regards,
Everaldo
On Tue, Feb 7, 2012 at 9:10 PM, Felipe Pieretti Umpierre
I tried, but was the same error.
--
Posted via
I'm sorry, I don't have more ideas to solve this.
Are you brazilian, right?
Why don't you try the brazilian mail list? rails...@googlegroups.com
I suppose someone there know how to solve this issue.
Regards,
Everaldo
On Wed, Feb 8, 2012 at 1:34 PM, Felipe Pieretti Umpierre
Quoting Felipe Pieretti Umpierre li...@ruby-forum.com:
Everaldo Gomes wrote in post #1044692:
Hi!
Try to follow Jefrey tip. Because he said that mysql adapter returns
ASCII-8bit.
You must use
adapter: mysql2
Regards,
Everaldo
On Tue, Feb 7, 2012 at 9:10 PM, Felipe
Do you mean like json-rpc mapping for rails?
On Feb 7, 10:48 pm, Scott Ribe scott_r...@elevated-dev.com wrote:
Can anybody point me to good info, preferably all current modern Ruby 1.9 +
Rails 3.1 + JQuery, on doing a popover window and integrating into a RoR app?
Essentially I need to do
On Feb 2, 2012, at 10:46 AM, Colin Law wrote:
On 2 February 2012 15:38, Don don.leat...@gmail.com wrote:
+1... (so frustrating that this is not provided as part of the core Rails
docs - I've wasted more time debugging crap caused by reserved word clashes
than any other single thing in
http://www.railslodge.com/plugins/668-json-rpc
On Feb 7, 10:48 pm, Scott Ribe scott_r...@elevated-dev.com wrote:
Can anybody point me to good info, preferably all current modern Ruby 1.9 +
Rails 3.1 + JQuery, on doing a popover window and integrating into a RoR app?
Essentially I need to do
On 8 February 2012 16:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Feb 2, 2012, at 10:46 AM, Colin Law wrote:
On 2 February 2012 15:38, Don don.leat...@gmail.com wrote:
+1... (so frustrating that this is not provided as part of the core Rails
docs - I've wasted more time debugging crap
I would like to use only one table ads on database.
regular AD:
:title
:price
:content
:username
trip AD:
:title
:price
:content
:username
:from
:to
Which associations should I use?
Polymorphic Associations
The has_and_belongs_to_many
Else?
--
You
On Feb 6, 2012, at 1:41 AM, sly verano wrote:
Guys help me please. How to convert this rails-cast to rails 3 ? I'm
trying to convert it but still there is no luck.
http://railscasts.com/episodes/88-dynamic-select-menus
Thanks in Advanced. c,)
Are you using jQuery or Prototype in the
On Feb 7, 2012, at 7:45 PM, regedarek wrote:
Hi.
My gems: carrierwave, whenever
I would like to remove from server photos uploaded 30 days ago.
I should use runner ?
every 1.day, :at = '4:30 am' do
runner MyPhotoModel.remove_after_30_days
end
How to remove files .jpg from
At Colin's suggestion, I have started a Wiki page with an old list of reserved
words, and I'd appreciate any additions to it. If I get a moment, I'll put a
simple app up on Heroku with the words in it so we can search and sort and
whatnot. I can't believe this hasn't been kept up, since the
I create a Gist with my recent ideas: https://gist.github.com/1770515
** http://groups.google.com/group/rubyonrails-talk?hl=pl
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
Hello Everyone,
I am new to Ruby. My application revolves around the user having a
Customer object and having that customer id in the session. Right now
I have a customer service which creates the customer or finds one that
has been created and adds the id to the session. However, I can't
Hi all,
I am quite new to Rails.
The code below loads a set of data from the database. When I click on
one of the item from db, it will load more details of same item from
database and display in the div next to it.
See listings below to see code snippet:
listing 1(search.html.erb)
can you give more details. what exactly do you mean by customer
service? Is it an object a
flow? sorry maybe someone else understands but I am trying to figure
out what
you mean by service.
On Feb 8, 10:42 am, Jonah Jameson li...@ruby-forum.com wrote:
Hello Everyone,
I am new to Ruby. My
what are the other objects? What is it that has_and_belongs_to_many?
for polymorphic relationships you want to ask if more than one
So
class Ad
belongs_to :adable, :polymorphic = true
end
class Customer
has_many :ads, :as = :adable
end
class NewsPaper
has_many :ads, :as=:adable
end
At
On Wed, Feb 8, 2012 at 2:00 PM, Lekkie Lekkie li...@ruby-forum.com wrote:
listing 3(loader.js.erb)
-
[code]
$('#loader_div').html(%=j render(@group_trace)%);
[/code]
Is that a j after the = ??
Javier Q.
--
You received this message because you are subscribed to
Well, you go here, right?
yourapp.com/search ?
Then the @group_trace is nil because it's not created until you run the
loader action.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
Thanks gerbdla,
Bascially CustomerService is a controller (customer_controller.rb)
that handles the operations concerning a Customer object in my
application. This customer object is also represented by a table in the
db. Now I have other controllers that handle other aspects of the
Yup! My question exactly, what is .zip.cpgz and why is it showing up.
On Feb 6, 8:38 pm, Robert Walker li...@ruby-forum.com wrote:
bertly_the_coder wrote in post #1044365:
I have a rails application that creates a couple of csv file, zips
them up and sends them to the client as an
It's just a browser attachment Anand, no mail invovled.
On Feb 6, 11:22 pm, news.anand11 news.anan...@gmail.com wrote:
you should try to use pony gem. I have tested to send mail with pdf files
as attachment.
On Tue, Feb 7, 2012 at 7:08 AM, Robert Walker li...@ruby-forum.com wrote:
Hello,
I'm having a very annoying problem.
I'm using Delayed Delta with thinking_sphinx and it has worked in the
past on this same environment and suddenly months later without touching
it, I restarted these processes and Delayed_delta has decided to
continue to shut down.
I have googled like
Hi all I wondering how I would go about generating multiple features on
user creation. I want every user who signs up to have a wishlist
automatically which is a separate to the actual users (different
model/view/controller etc.)
On user create I want it to create a user as well as create a
STI , Single Table Inheritance (This structure is best used for
models that have identical, or very similar attributes )
trip AD regular AD
class RegularAd ActiveRecord::Base
end
class TripAd RegularAd
end
migration (Rails 3.1)
class CreateAds ActiveRecord::Migration
def change
I am currently using MySQL as my database, I am guessing I will have to
re configure it all then?
--
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
On Wed, Feb 8, 2012 at 2:00 PM, Christopher Jones li...@ruby-forum.com wrote:
I am currently using MySQL as my database, I am guessing I will have to
re configure it all then?
No. Just sign up and deploy. If you have any problems, come back
and start a new thread with the details :-)
--
Jeffrey L. Taylor wrote in post #1044767:
Quoting Felipe Pieretti Umpierre li...@ruby-forum.com:
Regards,
Everaldo
On Tue, Feb 7, 2012 at 9:10 PM, Felipe Pieretti Umpierre
I tried, but was the same error.
In the Rails console, pick a model, I use Item here, try this, and show
us
Hi Chris,
Use an after_create callback in the User model to create the associated
Wishlist record.
HTH,
Bill
On Feb 8, 2012 3:25 PM, Christopher Jones li...@ruby-forum.com wrote:
Hi all I wondering how I would go about generating multiple features on
user creation. I want every user who signs
Quoting Felipe Pieretti Umpierre li...@ruby-forum.com:
Jeffrey L. Taylor wrote in post #1044767:
Quoting Felipe Pieretti Umpierre li...@ruby-forum.com:
Regards,
Everaldo
On Tue, Feb 7, 2012 at 9:10 PM, Felipe Pieretti Umpierre
I tried, but was the same error.
In the Rails
I'm very new to ruby and rails and followed Michael Hartl's tutorial
for Rails... it's a great starting point and covers deploying to
heroku.
I'm using rails 3.1.0 and postgresql and didn't find it difficult at
all to deploy on heroku.
Max
--
You received this message because you are
Most of my projects have been proof-of-concepts and/or MVP (minimal viable
product) efforts that were never intended to run with thousands of users,
so SQLite was fine for dev, test, AND production. Up through Rails 3.0
there was a Heroku stack (bamboo?) that allowed you to run SQLlite as
How can I design the app, so that any logged in user can edit/remove
his details only if he wishes to do so and can only view others'
records.
I am trying to say that users should be recognized by his unique
username/email id and as per that he should be assigned the writing
On Feb 8, 7:11 am, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Wed, Feb 8, 2012 at 10:39 AM, Colin Law clan...@googlemail.com wrote:
On 8 February 2012 07:12, Bob Smith bsm...@gmail.com wrote:
I need a way to set a counter that will show how many of the model
have been created and
Rails 3.1.3
This should be a basic question but it does not work for me, so I need
some help.
I would like to insert an image with jQuery after loading the page is
done.
More specifically,
$('#combine').click(function () {
$('#tempimage').html('img src=/images/arrow_close.png');
});
I installed the OptinPop plugin to create pop over windows for my
newsletter opt-ins. I wanted to measure the effectiveness of my pop over
window’s ability to get people to sign up for my newsletter. Since I
have been using Dynatracker to track the number of people who click on
my links and
On Feb 8, 11:54 pm, Bob Smith bsm...@gmail.com wrote:
On Feb 8, 7:11 am, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Wed, Feb 8, 2012 at 10:39 AM, Colin Law clan...@googlemail.com wrote:
On 8 February 2012 07:12, Bob Smith bsm...@gmail.com wrote:
I need a way to set a counter
how to create a intellisense in rails 2.3.8 with mysql as backend.
--
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
how to create a intellisense in rails 2.3.8 with mysql as backend.
Thanks in advance for your help and support.
--
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
How to upload image in rails 2.3.8 and also updating the existing image.
Thanks in advance for your help and support.
--
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
How to send emails from google smtp server in ruby on rails 2.3.8 can
anyone suggest the complete procedure because i am beginner for ruby.
Thanks in advance for your help and support
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
On Wed, Feb 8, 2012 at 8:54 PM, Bob Smith bsm...@gmail.com wrote:
What I am trying to do is have a *unique value* set in each new record
See: http://rubygems.org/gems/uuid
HTH!
--
Hassan Schroeder hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter:
There is now an app on Heroku for this. Please chip in and add any words you
know are trouble.
http://reservedwords.herokuapp.com
Thanks,
Walter
On Feb 8, 2012, at 12:50 PM, Walter Lee Davis wrote:
At Colin's suggestion, I have started a Wiki page with an old list of
reserved words, and
This here is useful stuff to read:
http://guides.rubyonrails.org/asset_pipeline.html
If not configured differently, the images that you have stored under
app/assets/images/arrow_close.png end up with an url of /assets/
arrow_close.png - it's always a good idea to try this out in the
browser
Not sure if worth adding, but I hit some weeks ago a nice issue when
translating a site that contained NO translations in YAML, like
this:
https://gist.github.com/1707858
NO meant as in Norway. I18n.t('country.NO') was returning
translation missing: en.country.NO.
So, YES and NO are reserved
Linus Pettersson wrote in post #1044801:
Well, you go here, right?
yourapp.com/search ?
Then the @group_trace is nil because it's not created until you run the
loader action.
Does this mean the logic of this app is wrong, how else can I do this
right?
--
Posted via
Javier Quarite wrote in post #1044799:
On Wed, Feb 8, 2012 at 2:00 PM, Lekkie Lekkie li...@ruby-forum.com
wrote:
listing 3(loader.js.erb)
-
[code]
$('#loader_div').html(%=j render(@group_trace)%);
[/code]
Is that a j after the = ??
Javier Q.
Removed but
70 matches
Mail list logo