Dear Friends,
Am in process of building a video player rails application, which is
compatabile to Safari, ipad, iphone device.
I have used below code to render a video and it works fine in safari.
But videos are not played in ipad and iphone.
I have tried changing the mime types, in
in on mac os 10.5 - when i run sqlite3 -version i get 3.4.0 - so i
guess i thought i updated, but maybe not.
should i be concerned about this version or the sqlite3-ruby version?
i cant seem to figure out my sqlite3-ruby version, anyone know how on
mac os?
i also have libsqlite3 in my bin, this di
give one space between map.connect and 'ads/id'
On Dec 29, 6:13 am, djangst wrote:
> See:
>
> http://edgeguides.rubyonrails.org/routing.html
>
> And the rest:
>
> http://edgeguides.rubyonrails.org/index.html
--
You received this message because you are subscribed to the Google Groups "Ruby
on
Filippos wrote in post #971185:
> I bought this book about rails for beginers (head first Rails)
> and its quite simple and good for someone who has no clue about Rails
> (or any other language)
> On chapter two it talks about routing
> but unfortunately the book is for rails 2 and i have rails 3 i
GGC on ROR wrote in post #971205:
> My question is ... how can i to map all tables existing from a SQL
> Server database version 2005 to Rails? I try convert any ASP.NET App
> into Rails App.
If you can switch to PostgreSQL or MySQL, then please do so -- your life
will be a lot easier.
But if no
Hi, I don't know what Mahmoud talking about, but others were right.
What OS do you use? In MacOS it can be a little bit different, but try
to follow this:
http://rvm.beginrescueend.com/rvm/install/
(try last step before NOTE)
Good luck,
gezope
On dec. 27, 12:57, Mahmoud Said wrote:
> have u also,
Hi, not sure if I got it well:
so you do have Ruby1.9, Gem1.3.7 but only Rails version 2.3.5, now you
want to update, right? On Ubuntu try this:
"gem update rails"
If you have permission problems then "sudo gem update rails" except if
you have RVM installed, then don't use sudo when installing gem.
My question is ... how can i to map all tables existing from a SQL
Server database version 2005 to Rails? I try convert any ASP.NET App
into Rails App.
--
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 r
ok I notice that the builds are diferent
old apps dont have a Configuration/application.rb
but the new applications does
it has Bundler.require(:default, Rails.env) if defined?(Bundler)
and i do have bundler 1.0.7 installed doubt thats the problem but its
the only diference
The old apps we
See:
http://edgeguides.rubyonrails.org/routing.html
And the rest:
http://edgeguides.rubyonrails.org/index.html
--
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 u
I bought this book about rails for beginers (head first Rails)
and its quite simple and good for someone who has no clue about Rails
(or any other language)
On chapter two it talks about routing
but unfortunately the book is for rails 2 and i have rails 3 installed
on my mac.
The line i have to en
I haven't had any luck. Does anyone else here have suggestions/hints?
This is an extremely frustrating issue. :/
--
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 emai
Have the same issue with native rails 3 application (ruby 1.9.2)
Are you using 'railroady' gem? Removing this gem from Gemfile seems to
solve the problem for me.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rail
I had to reinstall my OS and every thing else with it. So on this long
journey I final managed to get my old rails apps running right.
But now any new rails apps a create wont run on my local host threw
mongrel.
I get
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/mongrel.rb:1:in
`r
Hey Peter,
Now I am for from pro, but had to reinstall my whole system and have had
a hell of a time getting ruby back to were it was.
I ran into some sqlite3 problems
after re installing ruby and then installing ruby 1.8.7 I re installed
sqlite3
gem install sqlite3-ruby (I'm a windows guy)
I
King of the Web, Inc (kingofweb.com) is a Seattle based social games
startup. We are looking for Rails developers who understand what it
takes to build a web app that would reach millions of users and want
to have have fun while doing it!
Here's our Facebook page -
http://www.facebook.com/#!/page
Yes, I know "http://"; should have been on the link - it was just a
rough example.
I resolved this... Turns out that it was the 'print.css' file from the
Blueprint CSS framework.
I've never used Blueprint before, but there ya go!
Thanks guys.
On Dec 28, 3:23 am, Colin Law wrote:
> On 27 Dec
Marnen Laibow-Koser wrote in post #971154:
> What part was unclear? I'll be happy to elaborate.
> [snip]
> There should be lots of explanations of dealing with namespaced classes
> in Rails.
I agree that there SHOULD be! :) But I haven't found one yet. If you
give me a pointer to one good expl
On Ubuntu 10.04 with rvm 1.1.7 and the "Christmas" rubies:
* I get the ERROR messages below for a "fresh"
'gem install rails' on ruby-1.8.7-p330
* I get a clean install of rails 3.0.3 on
ruby-1.9.2-p136 (see below)
pet...@asus:~$ rvm --version
rvm 1.1.7 by Wayne E. Seguin (wayneeseg...@gmail.
Fearless Fool wrote in post #971153:
> Marnen Laibow-Koser wrote in post #971089:
> [snip]
>> That's easy enough.
> [snip]
>> No, you probably don't [want a generic Model, View and Controller
>> for a Restaurant, and then sub-classes for specific restaurants].
>> What you probably want is a fairly
Marnen Laibow-Koser wrote in post #971089:
[snip]
> That's easy enough.
[snip]
> No, you probably don't [want a generic Model, View and Controller
> for a Restaurant, and then sub-classes for specific restaurants].
> What you probably want is a fairly generic Restaurant object with
> some sort of c
Frederick Cheung wrote in post #971106:
> These *are* method calls (and the corresponding method name is foo= )
>
> Fred
Fred
That worked - thank you. I figured it was something simple that I was
missing
Marnen/David
I apologize if this wasn't the correct list to post this question. The
mocha-
Hi,
I have a customer and conversation model. A conversation is between 2
customers.
Here is my association in customer.
has_many :conversations, :class_name => "Conversation", :order =>
'updated_at DESC', :finder_sql => 'SELECT * FROM conversations c WHERE
(c.started_by = #{id} OR c.with = #{id})'
Marnen Laibow-Koser wrote in post #971140:
> Finne Jager wrote in post #971133:
>>> Since your resources are nested, you need to use the array syntax of
>>> form_for so that the proper route is generated.
>>
>> <%= form_for :command_officer, @command_officer do |f| %>
>
> No! You need the *parent*
Finne Jager wrote in post #971133:
>> Since your resources are nested, you need to use the array syntax of
>> form_for so that the proper route is generated.
>
> <%= form_for :command_officer, @command_officer do |f| %>
No! You need the *parent* resource names in there, I think. Rails
already k
Peter Vandenabeele wrote in post #971136:
> Frederick Cheung wrote in post #971035:
>> On Dec 28, 1:24am, Richard Myers wrote:
>>> hello all,
>>> this is driving me crazy, and i have tried everything and looked
>>> everywhere and i cannot resolve this problem.
>>>
>>> when i do bundle install in a
Frederick Cheung wrote in post #971035:
> On Dec 28, 1:24am, Richard Myers wrote:
>> hello all,
>> this is driving me crazy, and i have tried everything and looked
>> everywhere and i cannot resolve this problem.
>>
>> when i do bundle install in a rails app, i get an error "Failed to
>> build gem
Finne Jager wrote in post #971133:
>> Since your resources are nested, you need to use the array syntax of
>> form_for so that the proper route is generated.
>
> <%= form_for :command_officer, @command_officer do |f| %>
>
> That one doesn't generate any errors, thanks.
> But when I fill in the form
> Since your resources are nested, you need to use the array syntax of
> form_for so that the proper route is generated.
<%= form_for :command_officer, @command_officer do |f| %>
That one doesn't generate any errors, thanks.
But when I fill in the form and press submit, I get:
Routing Error
No
On Dec 3, 3:22 pm, Mike B wrote:
> I'm writing a Rails application against a legacy database. One of the tables
> in this legacy database has a column named object_id. Unfortunately
> object_id is also an attribute of every object in Ruby, so when ActiveRecord
> is trying to use these objects to f
Finne Jager wrote in post #971120:
> My routing:
>
> resources :incidents do
> resource :timesheet do
> resource :command_officer
> end
> end
>
>
> My CommandOfficersController:
> def new
> @command_officer = CommandOfficer.new
> ..
>
> Now if I want to add a Command Officer to an
My routing:
resources :incidents do
resource :timesheet do
resource :command_officer
end
end
My CommandOfficersController:
def new
@command_officer = CommandOfficer.new
..
Now if I want to add a Command Officer to an Incident's Timesheet, I go
to:
/incidents/41/timesheet/command_o
Are there any other opinions?
On Dec 28, 7:52 am, Robert Walker wrote:
> golubevpavel wrote in post #970976:
>
> > My friend suggested, that we wrap every call, that is usually served
> > via HTTP into XMPP. So, user registration, users search, profile
> > editing, photo uploading, everything goe
Take a look at your /etc/hosts file. Mine has the following priority:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Walter
On Dec 28, 2010, at 12:44 PM, Frederick Cheung wrote:
On Dec 28, 3:35 pm, Fernando Leandro
wrote:
Hello,
On Dec 28, 1:07 am, Michael Corr wrote:
>
> The problem is in the following calls in the NetConnection constructor
> @handle_tx.use_ssl = true
> @handle_tx.verify_mode = OpenSSL::SSL::VERIFY_NONE
>
> Since these are assignments, not methods with parameters, how do I stub
> them? I c
On Dec 28, 3:35 pm, Fernando Leandro
wrote:
> Hello,
>
> Working with rails, i realized that when i use my application with
> localhost:3000, the application becomes much more slow than when i use it
> with 127.0.0.1:3000, for example... have anyone ever realized this too?
>
I think that in som
David Kahn wrote in post #971102:
> On Tue, Dec 28, 2010 at 8:15 AM, Marnen Laibow-Koser
> wrote:
>
>> Michael Corr wrote in post #970988:
>> > Hi
>> > I'm using Mocha to mock a HTTP connection, so I can test higher level
>> > application code without requiring a 'live' webserver host. However, I'm
On Tue, Dec 28, 2010 at 8:15 AM, Marnen Laibow-Koser
wrote:
> Michael Corr wrote in post #970988:
> > Hi
> > I'm using Mocha to mock a HTTP connection, so I can test higher level
> > application code without requiring a 'live' webserver host. However, I'm
> > having difficulty trying to stub some
Thank you for your response.
I don't understand what you mean with "admin login"... There is only one
user who can create, edit and delete. This user is the admin. The other
"users" aren't users at all because they never log in.
With the namespace route I have now, my problem is when a "user"
golubevpavel wrote in post #970976:
> My friend suggested, that we wrap every call, that is usually served
> via HTTP into XMPP. So, user registration, users search, profile
> editing, photo uploading, everything goes via XMPP. No HTTP at all.
Don't get me wrong here, I think XMPP is a very cool a
Please quote when replying.
Fernando Leandro wrote in post #971088:
> I think the problem is that you`re trying to call a tasks method from an
> Array Class, you should do that for a Tab class, so try this, i didn`t
> tested but i think it can help:
>
> User.find(particular_user_id).tabs.collect {
Hello,
Working with rails, i realized that when i use my application with
localhost:3000, the application becomes much more slow than when i use it
with 127.0.0.1:3000, for example... have anyone ever realized this too?
Why this happens?
Thanks
--
You received this message because you are subs
On Dec 28, 2010, at 4:45 AM, Colin Law wrote:
1) Why does it create the user stuff in the vv migration/model - I
dont
have users in this app, should I delete those attributes or just not
worry about them, and it'll just work (tm).
The user stuff relates to which user made these changes, not
Fearless Fool wrote in post #971084:
> In my app, I need to perform transactions with external web sites.
> (Assume this is a system for placing online orders with restaurants --
> it isn't, but the true purpose will be revealed eventually).
It's really hard to provide accurate advice with inaccur
I think the problem is that you`re trying to call a tasks method from an
Array Class, you should do that for a Tab class, so try this, i didn`t
tested but i think it can help:
User.find(particular_user_id).tabs.collect {|c| c.tasks}.flatten
Good luck,
Fernando Santos
2010/12/28 Marnen Laibow-K
In my app, I need to perform transactions with external web sites.
(Assume this is a system for placing online orders with restaurants --
it isn't, but the true purpose will be revealed eventually). Each
restaurant's online system is slightly different, requiring slightly
different information fro
Michael Corr wrote in post #970988:
> Hi
> I'm using Mocha to mock a HTTP connection, so I can test higher level
> application code without requiring a 'live' webserver host. However, I'm
> having difficulty trying to stub some of the
> connection handle parameters.
>
This doesn't really have anyt
I tried the same example I posted above with 1.8.7 (2009-06-12
patchlevel 174) and it works there too, without the encoding specified
(that all changed between 1.8 and 1.9 AFAIK).
The post title mentioned the console. Are you running from the command
line, IRB, Rails console...?
--
You received
Daniel Oton wrote in post #970865:
> Hello!
>
> I'm using restful_authentication
Please replace it with Authlogic or Devise as soon as possible.
restful_authentication is hard to work with due to its reliance on
unmaintainable generated code.
> and I would like to have diferent views
> for logg
As i told. The problem arise when the command contains '<' and Russian
symbol 'с'
On 28 дек, 16:54, Colin Law wrote:
> On 28 December 2010 12:09, woto wrote:
>
>
>
>
>
>
>
>
>
> > Hi everyone, sorry for bad English.
> > Can anybody ask why there is an error?
>
> > require 'shellwords'
>
> > a =
bourne wrote in post #971069:
> Given the following relations (see bottom of post)
> n:m Users - Tabs (has_many has_many; trough sharedtabs)
That should probably be :shared_tabs.
> 1:nTabs - Tasks (has_many and belongs_to)
>
> I am stuck in the queries:
> @test = User.find(2).tabs.find(3)
More over for example this works good
s = "работает"
`touch #{s}`
`cat #{s}`
`cat < #{s}`
Problem is only when Russian symbol 'с' in the word
On 28 дек, 16:39, woto wrote:
> no, permissions are ok
>
> w...@woto-work:/tmp$ ruby -v
> ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
>
> w...
Prasad B. wrote in post #970999:
> i have a registration form ,i want to store data in corresponding user
> table in that hobbies field
> ,i want to store all hobbies in one column
No you don't. That's VERY BAD database design. Please read about DB
normalization.
Best,
--
Marnen Laibow-Koser
h
On 28 December 2010 12:09, woto wrote:
> Hi everyone, sorry for bad English.
> Can anybody ask why there is an error?
>
> require 'shellwords'
>
> a = ['ok_привет', 'fail_мистика']
>
> a.each do |s|
> `touch #{s}`
> `cat #{s}`
> `tr -d '\r' < #{s}`
> `tr -d '\r' < #{s.shellescape}`
> end
>
> s
Given the following relations (see bottom of post)
n:m Users - Tabs (has_many has_many; trough sharedtabs)
1:nTabs - Tasks (has_many and belongs_to)
I am stuck in the queries:
@test = User.find(2).tabs.find(3).tasks <-- all tasks in tab #3 of user 2,
works
I want to query all tasks tha
bingo bob wrote in post #971015:
> Can I chip in here as a slight aside - after Marnen (or someone else on
> here) "tore a strip off me" after I asked about cucumber without really
> doing the groundwork myself I went off and tried it in my app (sorry
> about the initial lack of effort and thanks f
no, permissions are ok
w...@woto-work:/tmp$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
w...@woto-work:/tmp$ uname -a
Linux woto-work 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11
UTC 2010 x86_64 GNU/Linux
w...@woto-work:/tmp$ lsb_release -a
No LSB modules are available.
On 28 December 2010 12:55, Mark L. wrote:
> ...hey Colin, thanx for the reply. Yes, I have zlib and zlib-devl
> installed.
Yes, I knew that. I was making the point that on Ubuntu it is zlib1
and zlib1g-dev in case it is relevant. I realise that it may not be
relevant on your OS.
Colin
>
> Col
FWIW this works for me (I needed to specify encoding):
# encoding: ISO8859-5
s = "мистика"
`touch #{s}`
`cat #{s}`
`cat < #{s}`
This is with Ruby 1.9.2p80. Are you still getting a "No such file"
error? Could it be a permission issue?
On Dec 28, 7:59 am, woto wrote:
> s = "мистика"
>
> `touch #
I found my answer. There is a gem that can read metadata (EXIF):
http://exifr.rubyforge.org/
There is another discussion posted on stackoverflow about using the gem
above. Also, there is a blog post about using RMagik and EXIF together:
http://iamjosh.wordpress.com/2008/02/12/using-rmagick-to-g
s = "мистика"
`touch #{s}`
`cat #{s}`
`cat < #{s}`
Result fails. WTF. Why?
On 28 дек, 15:09, woto wrote:
> Hi everyone, sorry for bad English.
> Can anybody ask why there is an error?
>
> require 'shellwords'
>
> a = ['ok_привет', 'fail_мистика']
>
> a.each do |s|
> `touch #{s}`
> `cat #{s}
...hey Colin, thanx for the reply. Yes, I have zlib and zlib-devl
installed.
Colin Law wrote in post #971034:
> On 28 December 2010 01:20, Mark L. wrote:
>> Hey guys, I'm having this same zlib problem on gems. See my output below
>> for what I have installed, and the error I get when I try and r
Thanks a lot guys! This is a piece of useful info :)
--
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 t
Hi everyone, sorry for bad English.
Can anybody ask why there is an error?
require 'shellwords'
a = ['ok_привет', 'fail_мистика']
a.each do |s|
`touch #{s}`
`cat #{s}`
`tr -d '\r' < #{s}`
`tr -d '\r' < #{s.shellescape}`
end
sh: cannot open fail_ми�тика: No such file
sh: cannot open fail
thank you ,thank you fred ,it will help in mytask
--
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
Not possible?
--
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 email to
rubyonrails-t
On 28 December 2010 09:16, Colin Law wrote:
> On 27 December 2010 22:08, Micah Geisel wrote:
>> Ben, did you ever figure out anything here? I'm experiencing the same
>> problem with 1.9.2: https://gist.github.com/756616
>>
>
> I am seeing a similar issue with startup between Rails 3 with 1.9.2
>
On 28 December 2010 08:25, rajeevsharma86 wrote:
> development:
> adapter: mysql
> encoding: utf8
> database: meeting_wave_development
> pool: 5
> username: root
> password:
>
You seem to have forgotten to ask a question. Also it is a good idea
to specify a subject that gives an indication
On 28 December 2010 06:32, bingo bob wrote:
> Thanks Walter, very clear and useful, it looks right for me - but two
> things.
>
> 1) Why does it create the user stuff in the vv migration/model - I dont
> have users in this app, should I delete those attributes or just not
> worry about them, and i
On Dec 28, 1:24 am, Richard Myers wrote:
> hello all,
> this is driving me crazy, and i have tried everything and looked
> everywhere and i cannot resolve this problem.
>
> when i do bundle install in a rails app, i get an error "Failed to
> build gem native extension" during sqlite3. i have inc
On 28 December 2010 01:20, Mark L. wrote:
> Hey guys, I'm having this same zlib problem on gems. See my output below
> for what I have installed, and the error I get when I try and run any
> gem commands. Also as you can see I have zlib[devel] installed. Some one
> mentioned something about the he
On Dec 28, 2:57 am, "Durga B." wrote:
> i have a registration form ,i want to store data in corresponding user
> table in that hobbies field
> ,i want to store all hobbies in one column so i take multiple check
> boxes and store in one array
> all checked values for that i am using below tag,but
hello all,
this is driving me crazy, and i have tried everything and looked
everywhere and i cannot resolve this problem.
when i do bundle install in a rails app, i get an error "Failed to
build gem native extension" during sqlite3. i have included the entire
error below.
i have rails 3.0.3, ruby
On 27 December 2010 22:40, dubstep wrote:
> I am trying to put a hyperlink in my view and it is not being rendered
> properly.
>
> In my view, I have:
>
> <%= link_to 'Search', 'google.com' %>
>
> the HTML source when rendered is:
> Search
>
> However, on the browser, it displays:
>
> Search(googl
Hello!, does anybody know how can i execute the generate jdbc in NetBeans..
I found out some clues in the net that I need to do this so that i can use
the db:* tasks with JRuby. Help me Please...
i need to prepare the test database with the rake utility in NetBeans when I
run the rake db:test:pr
On 27 December 2010 22:08, Micah Geisel wrote:
> Ben, did you ever figure out anything here? I'm experiencing the same
> problem with 1.9.2: https://gist.github.com/756616
>
I am seeing a similar issue with startup between Rails 3 with 1.9.2
and Rails 2 with 1.8.7, though I have not investigated
development:
adapter: mysql
encoding: utf8
database: meeting_wave_development
pool: 5
username: root
password:
--
Thanks:
Rajeev sharma
--
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 rubyonra
77 matches
Mail list logo