Hi,
I'm trying to insert a blob into a MySQL database with a Rails app. I'm
getting the error:
ActiveRecord::StatementInvalid (Mysql::Error: MySQL server has gone
away: INSERT INTO `index_entries`
(`legal_case_id`,`document_id`,`sword`,`word_count`,`map_data`,`created_at`,`updated_at`)
VALUES
Actually, the variable in my my.ini file is max_allowed_packet, not
max_packet_size.
--
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
@stream = Stream.find(:all, :conditions = ['title LIKE ?',
'%'+params[:search_text]+'%'])
try with this code
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
Are you NZ based (or in the process of relocating) and a Ruby on Rails
and/or Oracle Application Express guru??
Then read on……
We are on the look out for people with the following technical skills
ROR Developers: Ruby on Rail
SQL
Unix/Linux
I've checked a few times over the past couple weeks, and this is down:
http://manuals.rubyonrails.com/read/book/5
It's linked from the main Testing Page at:
http://wiki.rubyonrails.com/rails/pages/HowtosTesting
I figured I should tell someone, but I didn't know how. Thoughts?
On Dec 7, 10:13 pm, Wes Gamble [EMAIL PROTECTED]
wrote:
No, still haven't resolved it. Hoping that the next release of the
mysql gem for Windows will work better.
Yeah, still broken here.
--~--~-~--~~~---~--~~
You received this message because you are
Just to follow up, I was able to get rake to run on Windows under 2.2.2 by
using the InstantRails fix:
http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/
1. Copy libmysql.dll from there to your ruby/bin directory
2. gem install mysql --no-rdoc
-eric
On Tue,
no such file to load -- sqlite3
RAILS_ROOT: C:/Ruby/testProgram
I need to use the mysql as database.
Apparently the mysql gem is currently broken for Windows, so you should
probably get used to using SQLite for now.
-e
--~--~-~--~~~---~--~~
You received
On Dec 10, 3:02 am, Philip Hallstrom [EMAIL PROTECTED] wrote:
I don't know anything about your app, but if you don't use STI (ie.
you leave abstract_class = true) you'll never be able to tell the
difference b/n the two classes.
That is... you could..
create a BlockSchedule with ID=1
Hi Simon,
I have it set on MEDIUMBLOB, which the MySQL documentation says has a
limit of 2^24 bytes, so well above 820K. It was previously on BLOB, and
I was getting a different error (something like data too big for
column). I just used :limit = size_limit as a condition in a rails
On Dec 10, 3:34 am, livenotplastic [EMAIL PROTECTED] wrote:
I've checked a few times over the past couple weeks, and this is down:
You looking for this document
http://guides.rubyonrails.org/testing_rails_applications.html
?
Fred
http://manuals.rubyonrails.com/read/book/5
It's linked
I just know that when we had that 'mysql has gone away' error, the mysql
logs had something like 'value too large for col' etc...
But if that isn't your problem, then I have nothing else to offer :(
On Wed, 10 Dec 2008 18:02:32 +0900, Farmer Schlutzenberg
[EMAIL PROTECTED] wrote:
Hi
Hi
Im using the 5 views and one controller.To edit the form and produced
Couldn't find ResortBasic without an ID
View code
.editresortbasic.html.erb
% form_tag :action = 'editresortbasic',:controller='Wizard' do %
brbr
h3 align=centerEdit Resort
ok, so if parts belongs_to Revision, it must have a revision_id
which you must have created in the migration.
Assuming you have a form that sends the Parts data (in params[:parts]
and
you know to which revision it should be added, then
@revision = Revision.find(revision_id) # however you get
If you post one and the same question several times,
you could at least have a look at the responses for each post:
http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/4c0625da76c0a962/45b7ccb765e66bf4#45b7ccb765e66bf4
--~--~-~--~~~---~--~~
You
Hello John,
I was very excited when I saw this, but I can't get it to work on my
system -- though I admit to having no knowledge of multibyte
characters and I would guess my problem is either an environment
issue, or a change that is happening in Rails 2.3, but perhaps you
could point me in
hi priya,
thanks for your reply,
but what you are telling is similar to:
@streams = Stream.find( :all,:conditions = [( [(LOWER(name)
LIKE ?)] * terms.size ).join( AND ),* terms.flatten] )
with this i am able to search the table for any one column.
my query is :
1)i have to search with any
there are two main ways to create forms in RoR:
- use the helpers that end with _tag, those create pure html
tags and are not too much aware of objects contents (like
@editresortbasic)
- use it like that:
in the controllers edit action get @editresortbasic like:
def edit
@resort_basic =
Hi Emuen,
I suppose you want to use acts_as_git because ~_versioned won't be
fixed, imho.
Regards
Florian
Am 01.12.2008 um 10:09 schrieb Emuen:
Hi people I have tried to install the acts_as_versioned gem from
github in rails 2.2.2 but it seems to conflict with some methods in
the
hi priya ,
you are right,
but here only one column entries of table it is able to search and listing out.
if i enter any column entry i should get the stream name from table.
ex:
name resolution codecname framerate tags
dust.mpeg2 1920x1080 mpeg2 30fpsmpeg2 1920x1080
I've now worked it out.
I eventually decided to restart my computer on the off chance that MySQL
wasn't actually reconfiguring after I set max_allowed_packet (even
though it seemed this shouldn't actually affect things since I was only
changing from 1M to 32M, and my query seems to be less
Hey there,
I just released DiacriticsFu 1.0.2 that should work with Rails = 2.2
and $KCODE UTF8 (the default Rails setup).
It's still a hack but I hope it will work for you :)
cheers
Thibaut
--
http://blog.logeek.fr
http://evolvingworker.com
@stream = Stream.find(:all, :conditions = ['name LIKE ? or resolution
LIKE ? or codecname LIKE ? or framerate LIKE ? or tags LIKE ?',
'%'+params[:search_text]+'%','%'+params[:search_text]+'%','%'+params[:search_text]+'%',
'%'+params[:search_text]+'%','%'+params[:search_text]+'%'])
I checked
hi priya,
thanks alot its working for me .
and one more query .
i have two tables like:
1)streams table with columns
id name resolution codecname framerate
2)tags table with columns like;
id name
previously i am searching in streams table using any column entry of that table.
And using
Hello,
I have a problem that I thought I could solve with acts_as_tree but
I'm thinking now that acts_as_tree doesn't quite fit the bill.
Basically I have a standard hierarchy with 1 difference:
Node 1
\ Leaf 1
\ Node 2
\ Leaf 2
\ Node 3
It's already there. The context in which that javascript runs includes
an object called request, which the is Ajax request object.
In particular response.responseText is what you would expect it to be.
Thanks, Fred! However, I just can't get it to work. If I'm reading
your comment
Do you have the image in the image folder or any other folder?
Also check the extension of that image name(Whether
uppercase(green.JPG) or lowercase(green.jpg)). Give correctly.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this
Zhoran Tvalve wrote:
Bontina Chen wrote:
I'm testing the http module in console.
BUt I got the following error.
Anyone knows why?
Net::HTTP.get_print 'www.google.com', 'index.html'
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
You are passing params[:id] as argument to find, so no need to use
find_by_id. Its enough to use
@resort_basic =ResortBasic.find(params[:id])
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Bontina Chen wrote:
I'm testing the http module in console.
BUt I got the following error.
Anyone knows why?
Net::HTTP.get_print 'www.google.com', 'index.html'
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj'
from
Hi i used the code in editresortbasic.html.erb
% form_for @editresortbasic do %
wizard controller.rb
--
def editresortbasic
@resort_basic =ResortBasic.find_by_id(params[:id])
if request.post?
@resort_basic.update_attributes(params[:resort_basic])
I want something really simple: I want a date_select that has
blanks (:include_blanks works fine so far), but having an empty
value in the select box on the webpage is ugly, so I want something
more informative there, like month or select a month or something.
In other words:
select
/^[A-Z0-9_]*$/i is a regular expression.
Basically
^denotes starts with
[A-Z0-9_]* denotes 0 or more capitals, numbers and underscores
$ denotes ends_with
The i at the end means to ignore case (i think).
Thus your username can only contain letters,
%= check_box :modelname, :attribute, options, on_value, off_value %
Example:
check_box post, validated # post.validated? returns 1 or 0
input type=checkbox id=post_validate name=post[validated]
value=1 checked=checked /
input name=post[validated] type=hidden value=0 /
http://localhost:3000/images/green.JPG.?1228211220
not work, error message as below, I don't know why there is a .
appended after the filename.
No route matches /images/green.JPG. with {:method=:get}
The image is located at public\images
The filename is green.JPG
Thank you for your
Priya Buvan wrote:
@books = Book.find(:all, :joins=books inner join authors as a on
books.title=a.name, :conditions = ['name LIKE ? ',
'%'+params[:author][:name]+'%'])
try with the above code
I put the code in Authors Controller as it is, and I get nil object
error.
Since I am using
Hi,
i will want to generate a report based on some data in a text file.
is it possible in ruby on rails for rails version 2.2.2.
please give some hints or tutorial.
Thanks
--
Posted via http://www.ruby-forum.com/.
And, in field_3 it was just word=f, so that shouldn't have added too
much. And, as I mentioned earlier, cutting the blob size down to 800K
also made it work OK.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because
I think RAILS_ENV is getting set incorrectly, but I don't know exactly
how to find out where.
At the bottom of Rails::Initializer.run do |config| in environment.rb,
RAILS_ENV is the correct value (staging, development, production,
etc).
Just below the initializer block, RAILS_ENV has changed to
hi priya,
i ahve tried the same way,but i am getting errors like:
ActiveRecord::StatementInvalid in StreamsController#get_results
Mysql::Error: Column 'name' in where clause is ambiguous: SELECT
streams.name FROM `streams` streams inner join tags as t on
streams.id=t.id WHERE (name
On Oct 23, 5:26 pm, Pardee, Roy [EMAIL PROTECTED] wrote:
You shouldn't have to worry about that. In this code:
Product.transaction do
@product.save! #-- this saves the product, retrieving the
db-assigned ID
@details.product = @product #-- this writes @product.id to
I investigated a bit more:
- with a blank Rails 2.0.5 app, works as expected
- with a blank Rails 2.2.2 app, doesn't work
So obviously the = Rails 2.2.2 fix (see new_escaper.rb) does not work properly.
I'll keep you posted.
cheers
-- Thibaut
I need to have html.erb and html.haml templates living side by side in
the same directories. How
does one configure Rails at initialization to prefer rendering one
type over the other when both types are present?
--~--~-~--~~~---~--~~
You received this message
Dear all
I am new to rails.
In view, I place the following code, but cannot show the picture in the
webpage
%= image_tag(green.JPG) %
However, I can access the picture in this url
http://localhost:3000/images/green.JPG
The HTML source code generated
img alt=Green
Try to use or in the places of , in conditions.
--
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
Change the extension to lowercase and check it
--
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
The HTML source code generated
img alt=Green src=/images/green.JPG.?1228211220 /
Does
http://localhost:3000/images/green.JPG.?1228211220
work?
And what is that dot . doing after the JPG?
Next, always use lower case file extensions - jpg. That's just for style, but
it
helps us diagnose
I am trying to write my own javascript validation and am looking for
some help with writing a function that checks to see if a string
contains invalid characters. I have gotten it to work for spaces:
username.include?(' ')
but I would like to perform a thorough check for all invalid
characters
Frederick Cheung wrote:
On Dec 10, 5:36�am, Jay Mark [EMAIL PROTECTED] wrote:
Rails?
Is subselect not supported in Rails?
For the sake of argument you can do
@books = Books.find_by_sql [SELECT * FROM books WHERE title IN
(SELECT
title FROM authors WHERE name = ?),
Jay Mark wrote:
Priya Buvan wrote:
@books = Book.find(:all, :joins=books inner join authors as a on
books.title=a.name, :conditions = ['name LIKE ? ',
'%'+params[:author][:name]+'%'])
try with the above code
I put the code in Authors Controller as it is, and I get nil object
Hello everyone,
I am trying to make live-search list with observe_field and I still have
the problem with invoking the proper action.
Take a look at the following code:
index.html.erb:
%= text_field_tag search %
%=
On 10 Dec 2008, at 06:55, Priya Dharsini wrote:
@books = Book.find(:all, :joins=books inner join authors as a on
books.title=a.name, :conditions = ['name LIKE ? ',
'%'+params[:author][:name]+'%'])
What out for sql injection there.
Fred
try with the above code
Jay Mark wrote:
I have
Hello,
On 16 Okt., 20:02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I'm running into a project where a client has large Excel files
(60.000+ records per file) and he needs an application to import them
into a database to use this data for useful operations (reporting,
calculations
Hi group,
I'm a complete novice who is having lots of fun discovering Ruby, Ruby
on Rails / Watir. Good bits of software.
I wanted to record the info in the output window, into a text file. I
wanted to do this in Ruby as I don't know enough about R-o-R.
Can anyone help me out on this.
On Dec 10, 1:07 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi group,
I'm a complete novice who is having lots of fun discovering Ruby, Ruby
on Rails / Watir. Good bits of software.
I wanted to record the info in the output window, into a text file. I
wanted to do this in Ruby as I
Turns out it was happening when rpsec-rails was being loaded.
Conditional loading for the test environment solved this:
config.gem 'rspec-rails', :lib = 'spec/rails', :version = '1.1.11'
if RAILS_ENV == 'test'
On Dec 10, 8:39 am, Nik B [EMAIL PROTECTED] wrote:
I think RAILS_ENV is getting set
On Tuesday 09 December 2008 12:03:55 Davi Vidal wrote:
On Tuesday 09 December 2008 10:49:24 Sulekha Mariam wrote:
Sulekha Mariam wrote:
[...]
def tag_cloud
[...]
now i am getting the error
Showing stories/index.html.erb where line #4 raised:
wrong number of arguments (2 for
Hi there,
I use the gem ar_mailer, but it doesn't store the emails in the
database.
Has anyone an idea:
- why this could be the case?
- or how I could find out where the problem lies?
(- Rails doesn't throw me any error messages at all!)
Thank you very much for any hint!
Tom
--
Posted via
On Tue, Dec 9, 2008 at 4:24 PM, Frederick Cheung
[EMAIL PROTECTED] wrote:
Is this rails check box trickery tripping you up ? The rails check box
helper creates a hidden input field with the same name (and value 0)
as well as the actual check box. If you're using arrays of parameters
like I
On 10 Dec 2008, at 15:55, Rick wrote:
On Tue, Dec 9, 2008 at 4:24 PM, Frederick Cheung
[EMAIL PROTECTED] wrote:
Is this rails check box trickery tripping you up ? The rails check
box
helper creates a hidden input field with the same name (and value 0)
as well as the actual check box.
Chris Olsen wrote:
Frederick Cheung wrote:
You can't set cookies for a top level domain like .local (in the same
way that you can't set a cookie for .com) the domain you set a cookie
for must have at least two components (there are a lot of
complications etc... see
Hi
I want to consume some web services that are only available over HTTPS.
My method looks like this:
def lookup_id
myid=params[:id]
driver =
SOAP::WSDLDriverFactory.new(https://server.com/xxx.wsdl;).create_rpc_driver
@p=driver.verifyId(AUTH_TOKEN, PIN, myid)
end
Although this
Also, if you want whatever you spit out using puts
i.e puts array.inspect
then you can save to a text file by running mongrel in deamon mode
mongrel_rails start -d
This will save all output in log/mongrel.log
On Dec 10, 1:07 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi group,
I'm a
If you decide to use roo you can try running the processing task in
the background.
backgroundRB ??
On Dec 10, 2:38 pm, Thomas Preymesser [EMAIL PROTECTED] wrote:
Hello,
On 16 Okt., 20:02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I'm running into a project where a client has
Hi folks,
It's no secret that self-publishing a book and putting it under a
creative commons license while providing an HTML version for free, and
not marketing the paid version to anyone and giving 25% of your
revenue to charity might not be the most profitable venture. The
preceding run-on
Hi guys:
i have a question about Will_paginate .
i have mutilple same type collections.
for example .
items_1 = Post.find(:all , :conditions ={...}) # different condtions to
get the items_1
items_2 = Post.find(:all, :conditions ={...}) # diffenrt conditions to
get the item_2
items = items_1
(the Mark Ma from Railsconf 07'?)
On 10-Dec-08, at 12:06 PM, Mark Ma wrote:
Hi guys:
i have a question about Will_paginate .
i have mutilple same type collections.
for example .
items_1 = Post.find(:all , :conditions ={...}) # different
condtions to
get the items_1
items_2 =
I'm developing a RoR app that uses a custom file type. I'm using
file_column plugin to upload the files into my rails application, and
that part works great. However I then need to render these files. I
have an application that does this, and is designed to be run from the
cgi directory.
Thanks Frederick. Your explanation was perfect! (Now I'll work on
figuring out how to handle the problem creating the checkbox manually,
but you got me on the right path.)
(Seriously, send my a paypal link or else I'll be getting you a gift
certificate to amazon or something:)
On Wed, Dec 10,
I have a shopping cart project that I am putting together. I am able
to combine items and get the correct price, however the quantity does
not show up as to how many of the same item is being bought. Here is
my code. Any suggestions wold help out this newbie... not sure what I
am doing
On Dec 10, 3:02 am, Philip Hallstrom [EMAIL PROTECTED] wrote:
I don't know anything about your app, but if you don't use STI (ie.
you leave abstract_class = true) you'll never be able to tell the
difference b/n the two classes.
That is... you could..
create a BlockSchedule with ID=1
On 10 Dec 2008, at 17:47, Rick wrote:
Thanks Frederick. Your explanation was perfect! (Now I'll work on
figuring out how to handle the problem creating the checkbox manually,
but you got me on the right path.)
(Seriously, send my a paypal link or else I'll be getting you a gift
Exactly, after more tinkering and such I made it work by copying to an
array.
Thanks for taking the time to read my post,
On Dec 7, 6:10 am, Frederick Cheung [EMAIL PROTECTED]
wrote:
On 6 Dec 2008, at 23:42, jim wrote:
@ticket = Ticket.find(params[:id])
@line_items = @ticket.line_items
The Rhodes framework (available at http://github.com/rhomobile) is an
open source Ruby-based platform for building locally executing, device-
optimized mobile applications. It is similar in concept to MVC
frameworks such as Rails, Merb and Camping but much lighter weight
(and hence executable on
A plugin is available for basic HTML integration with WorldPay that also
handles the payment notification callbacks.
http://github.com/paulspringett/worldpay-http-redirect/tree/master
Paul
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
in starting a new project, i decided to try using the --git option to
see what would happen..
i figured it might just make up a new project and put the whole thing
under git control..
unfortunately, all i got was:
fatal: Not a git repository
everywhere..
can someone tell me exactly how this
I want to become a Rails web developer. I am not a programmer by any
means. I have built one static website and am familiar with HTML and
CSS. I know I'll need to learn Rails, and perhaps a list of other
things like SQL, JavaScript, Apache, Ruby etc. but I have no idea
where to start.
Could
How do i do an update posts set `home`=1 with ActiveRecord?
--~--~-~--~~~---~--~~
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
sorry. a peek into the API gave me the solution.
Post.update_all(:home=1)
On Dec 11, 2:06 am, Unni [EMAIL PROTECTED] wrote:
How do i do an update posts set `home`=1 with ActiveRecord?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
http://guides.rails.info/getting_started_with_rails.html
-
Ryan Bigg
Freelancer
http://frozenplague.net
On 11/12/2008, at 6:27 AM, Painting With Purpose wrote:
I want to become a Rails web developer. I am not a programmer by any
means. I have built one static website and am
I've got a strange problem with raking my tests. They come up all clear
when I do rake:functionals but when I run them as individual ruby files
the test fail as they should. What's the difference? Does anyone else
have problems like this.
John Small
--
Posted via http://www.ruby-forum.com/.
If you do mkdir project cd project git init rails . --git it
will add all the rails files to a git repository.
-
Ryan Bigg
Freelancer
http://frozenplague.net
On 11/12/2008, at 6:32 AM, Sergio Ruiz wrote:
in starting a new project, i decided to try using the --git option to
I'm having a weird issue where if say
someobject.items.sort_by {|item| item.key }
#or
someobject.items.sort_by :key
#then
someobject.items.each do |item|
#somestuff
end
#somestuff is not in sorted order. if i use different syntax...
questionnaire.items.sort! { |a,b| a.key = b.key }
this
On 10 Dec 2008, at 21:33, SurviveStyle5 wrote:
I'm having a weird issue where if say
someobject.items.sort_by {|item| item.key }
#or
someobject.items.sort_by :key
#then
someobject.items.each do |item|
#somestuff
end
#somestuff is not in sorted order. if i use different
up,
anyone?
--
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
Thanks! ok i couldn't find sufficient documentation to tell me either
way, thanks! it's always something silly.
On Dec 10, 3:50 pm, Frederick Cheung [EMAIL PROTECTED]
wrote:
On 10 Dec 2008, at 21:33, SurviveStyle5 wrote:
I'm having a weird issue where if say
Hi,
I'm trying to destroy session when user clicks logout in
railsHere is the code:
def logout
reset_session
redirect_to
CASClient::Frameworks::Rails::Filter.client.logout_url
(request.referer, url_for (:controller = 'site', :action =
'myportal'))
end
However, when I click the
On Dec 10, 10:22 pm, Jack [EMAIL PROTECTED] wrote:
However, when I click the back button, it shows me the page with all
information. If the session is destroyed, it should not display the
page, right?
What could be the issue?
Your browser's cache
Fred
What does the link which directs you to the edit method for the WizardS
Controller look like? You aren't getting an ID passed in the params.
Your edit.html.erb code has nothing to do with this error, this comes
from the form that is going TO the edit view.
How is the link TO the edit form
The Back button is just a LOCAL browser history navigation command, if I
remember correctly.
--
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
I know you're gonnna say plugins, but bear with me.
I'm a Facebook app developer, and I have an array of different ones
going. I want them all to work off the same basic framework I've
created, but I'm not sure what the best way to do that is. This is what
I want to share:
- various filters in
If I want to redirect the user back to the login page when back is
hit, what code do I need to put in?
Thanks!
On Dec 10, 2:57 pm, Ar Chron [EMAIL PROTECTED] wrote:
The Back button is just a LOCAL browser history navigation command, if I
remember correctly.
--
Posted
Head First Design Patterns is an excellent book IMHO for OO
application design. It's geared towards Java but it has excellent
points. One of them being 'favor composition over inheritance'. The
use of modules in Rails gives so much flexibility that I think going
that route would be the
Weng Edgar wrote:
you can go to http://www.tmtm.org/en/ruby/mysql/ to download the tar
file, and run the command below
# ruby ./install.rb
to install the mysql.rb
Just learning so hang with me. I downloaded, unzipped and in terminal
ran # ruby ./install.rb which returned a new command
Hello,
Not sure if this is even possible/practical but I'd like to serialize an
array to a string field like this and then be able to match against it.
User.find(:all, :conditions = [interests in
(?),current_user.interests)
Am I better of not denormalizing? How would this be done with
Grayson Piercee wrote:
User.find(:all, :conditions = [interests in
(?),current_user.interests)
Here's a wild guess. I hope someone else corrects it if I have lead you astray!
User.find(:all, :include = :interests,
:conditions = [interests.id IN (?),current_user.interests]
:order =
Sounds to me like that extra . is the problem. The big question
is why image_tag adds that extra dot. It shouldn't. Have you
looked at the source code for image_tag? You didn't accidentally
override it or anything like that?
mcv.
Thank you for your help
Could you tell me where the
mcv.
Thank you for your help
Could you tell me where the source code located?
I found the source code
def image_tag(source, options = {})
options.symbolize_keys!
options[:src] = path_to_image(source)
options[:alt] ||= File.basename(options[:src],
Since I am new to ruby, and I am a green programmerI cannot figure
out the problem. Can you help me?
Thanks alot.
Valentino
I tried the following code, there is also a extra .
%= image_tag(green.jpg, :alt = Green) %
I am frustrated. Please help...
Thank you.
Valentino
--
Posted via
Hello,
I am making an application in which I have a div where a new news is flashed
after every 5 second or so automatically. By automatically, I mean user does
not send any request to server by clicking on anything. The approach I think
which might work is - for news div, I call a javascript
1 - 100 of 125 matches
Mail list logo