Pokkai Dokkai wrote:
now i am working in a rails project version 1.2.3
but i like to work in rails 2.1.1
i thing by freexe the 1.2.3 gemm into vendor will solve the problem
but i have 35 plugin in my project(which is version 1.2.3)
so i worried about freezeing old gem into vendeor
any
simple_captcha does not work in test environment
---
Hi,
I have been using simple_captcha and it works fine and make myself
happy. When I moved my app to test environment, It does not throwing
message when the letters in
Hi,
Above code is working fine,
you assign the memcached server where you run memcache server
memcache_servers = localhost:11211
above line you replace localhost as IP(i.e,)where memcache server
running
ex:memcache_servers = 168.162.10.26:11211 -- like this
and start memcache server
now i am working in a rails project version 1.2.3
but i like to work in rails 2.1.1
i thing by freexe the 1.2.3 gemm into vendor will solve the problem
but i have 35 plugin in my project(which is version 1.2.3)
so i worried about freezeing old gem into vendeor
any help appreciated?
thanks
--
Jon wrote:
def create
@review=Review.new(params[:review])
@[EMAIL PROTECTED]
thats correct syntax (if @album is a object of Album model)
i'm not sure that @[EMAIL PROTECTED] is the correct syntax, but even
at the command line when I instantiate an object of type Review and do
Hi
I have to copy all the service desk cis to incident cis as part of
converting sd_ticket to incident..So in the Incident model I did
sd_ticket=ServiceDeskTicket.find(sd_id)
Then a new incident @incident is created here
sd_cis=sd_ticket.get_sd_cis #here I got all the service desk cis
X-No-Archive: yes
Hi,
this article helped me when updating:
http://blog.insoshi.com/2008/07/03/a-rails-21-case-study-upgrading-the-insoshi-social-networking-platform/
Cheers
On 26 Sep., 09:18, Frederick Cheung [EMAIL PROTECTED]
wrote:
On Sep 26, 12:54 am, lunaclaire [EMAIL PROTECTED] wrote:
Frederick Cheung wrote:
On Sep 26, 7:00�am, Pokkai Dokkai [EMAIL PROTECTED]
wrote:
If you are asking whether your old app will work after you freeze
rails 1.2.3 into the project and then upgrade your gems then yes.
That's the point of freezing. You 1.2.3 app won't use the new gems at
all.
how to send messages to mobile deveices from ruby on rails ?
--
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
Sijo Kg wrote:
Could anybody please tell me what these?BehaviouralDrivenDevelopment
and TestDrivenDevelopment ? what are their pros and cons?
TDD means you never write new lines of code until you have a failing test case
that expects the code to exist.
A test case follows the Assemble
Hi
Thanks for your reply
Sijo
--
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 Thu, Sep 25, 2008 at 11:02 PM, sadeesh kumar [EMAIL PROTECTED] wrote:
simple_captcha does not work in test environment
---
Hi,
I have been using simple_captcha and it works fine and make myself
happy. When I moved
Pokkai Dokkai wrote:
how to send messages to mobile deveices from ruby on rails ?
One way, though maybe not the best depending on your needs, is to send
an email to [EMAIL PROTECTED], such as [EMAIL PROTECTED]
Peace.
--
Posted via http://www.ruby-forum.com/.
Hi,
I have created the url
http://localhost:3000/groups/home?group_id=1parent_id=3;.
I have one method in which I am able to access the url parameters by
using params[:group_id] and params[:parent_id].
My question is that how the params hash is get created? and who creats
this hash?
Thanks,
The more I look at this, the more it seems that I can't put concentric
circles or the numbers. Am I wrong about this?
Also, is there any way to add bottom-margin to a spider graph in
Gruff? It doesn't look that way so far...
--
Posted via http://www.ruby-forum.com/.
I tried manually defining @album like so
id=1
@review=Review.new(params[:review])
@review.album=Album.find(id)
@review.save
Because of this, I don't think it's that @album was not defined. Also as I
brought up before, and I think this is key in showing their is something
at my company we want to add mapping to our application, and while
Google maps is clearly the most awesome mapping API on the planet, the
terms and conditions dictate that it must be free to all users. We are
thinking this means that we must either use some other mapping
software, or be sure to
Hey Dan,
Why don't you pass an unique ID parameter in each link (either GET or
POST) and use this in a before_filter in the application controller?
The filter would just increment the count for that ID in a separate
table. This is a general design that would work for anything. Later
you can use
Fernando Perez wrote:
I solved it by appending the first method to the chain.
I have another problem:
I want to chain 2 named_scopes that both have a :joins in their
definition. The problem is that the :joins of the second named_scope in
the chain doesn't get added to the query. IS
This has probably been definitively answered elsewhere (it applies to
the default setup for restful_authentication), but I haven't been able
to track the solution down. My User model has a unique 'username' (or
:login, as it's known in RA) attribute, and it's going to be very
annoying for users
I'm sure this is an easy fix for folks more familiar with subversion
than me, but here it goes:
I'm running Capistrano and have successfully deployed my app from my
local machine to my live server. The repository is on the server as
well. What happened is I had to generate some files on the live
the VERSION value at in rake db:migrate VERSION=[versionNumber] is the
migration number right? for instance lets say I have 3 models
generated in this respective order albums, users, and reviews. If I
do rake db:migrate VERSION=0, it will delete the data and existence
of all three tablesif
Actually chaining 2 named_scopes that have :joins in them is not yet
possible as of Rails 2.1.1, the issue is fixed and is available in Rails
edge, or we'll have to wait until 2.2 is out.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
In my rake task I try to use the classes and methods defined in a
plugin.
Seems that plugins are not hooked up during the rake task run.
Models are also not hooked up.
I can require 'ModelName'
I can require 'activerecord'
But my Model depends a lot on the plugin (globalize) and initiation of
On Fri, Sep 26, 2008 at 07:24:43AM -0700, Stedwick wrote:
at my company we want to add mapping to our application, and while
Google maps is clearly the most awesome mapping API on the planet, the
terms and conditions dictate that it must be free to all users. We are
thinking this means that
On Sep 26, 4:13 pm, Alexey Skoblikov [EMAIL PROTECTED] wrote:
What is the simplest way to hook up the whole environment during the
rake task?
Make your task depend on the :environment task.
Fred
--~--~-~--~~~---~--~~
You received this message because you are
On Fri, 2008-09-26 at 08:31 -0700, Jon wrote:
the VERSION value at in rake db:migrate VERSION=[versionNumber] is the
migration number right? for instance lets say I have 3 models
generated in this respective order albums, users, and reviews. If I
do rake db:migrate VERSION=0, it will delete
Craig,
Yeah that sounds more feasible rather than migrating down...I can definitely
confirm VERSION=0 will drop the table though because when try to load the
structure in the console it throws me an error.
What would be the syntax to just add a change(thus adding a new migration
then)
I want to
I'm sorry, it doesn't throw me an error, it says Review(Table doesn't exist)
On Fri, Sep 26, 2008 at 8:58 AM, Jon Liu [EMAIL PROTECTED] wrote:
Craig,
Yeah that sounds more feasible rather than migrating down...I can
definitely confirm VERSION=0 will drop the table though because when try to
This is nice but I've done a little different...I created one class
for the image and another for the thumbnails. For this solution you
need to add :thumbnail_class = Thumbnail in the thumbnails hash and
define the scope_condition in the easy way (and a has_many association
too).
Thank you very much!
On 26 Септ, 18:44, Frederick Cheung [EMAIL PROTECTED]
wrote:
On Sep 26, 4:13 pm, Alexey Skoblikov [EMAIL PROTECTED] wrote:
What is the simplest way to hook up the whole environment during the
rake task?
Make your task depend on the :environment task.
Fred
Dan Paul wrote:
Hello,
So I am trying to simply track the number of hits a link has received
and display that number on the site so other users can see which links
are more popular.
Dare I mention that this method counts a link as popular even if the
user arrived at the destination page
I have two models Event and Category in my rails app.
I want a join model for many to many association so i used the script
./script/generate migration create_categories_events event_id:integer
category_id:integer
but the migration that is generated is empty. I am using rails 2.1.1.
Can anyone
What magic were you expecting to have happen? (Rails did exactly what
you told it to).
Don't you want something like
format.xml { render :xml = @software.to_xml( :include = :directories )
}
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
On Sep 26, 5:05 pm, rick_2047 [EMAIL PROTECTED] wrote:
I have two models Event and Category in my rails app.
I want a join model for many to many association so i used the script
./script/generate migration create_categories_events event_id:integer
category_id:integer
but the migration
If you want only @directories, then you should create an rxml template
to be used under software, where you marshall the xml data is any old
format you want.
for directory in @directories
xml.directory do
xml.directory_name(directory.name)
etc
etc
end
end
--
Posted via
nice summary -- thanks!
--
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
On Fri, 2008-09-26 at 08:58 -0700, Jon Liu wrote:
Craig,
Yeah that sounds more feasible rather than migrating down...I can
definitely confirm VERSION=0 will drop the table though because when
try to load the structure in the console it throws me an error.
What would be the syntax to just
how do you view the stacktrace? I thin this is the solution to my
problem...only now migrations is acting funny with me...
On Fri, Sep 26, 2008 at 7:27 AM, Frederick Cheung
[EMAIL PROTECTED] wrote:
On Sep 26, 3:18 pm, Jon Liu [EMAIL PROTECTED] wrote:
I tried manually defining @album like
On Fri, 2008-09-26 at 09:33 -0700, Jon Liu wrote:
ok thanks, but how do you actually generate that particular migrations
file from the command line?, ie it would be 004_something
script/generate migration some_name_of_what_you_re_trying_to_accomplish
Craig
Alternate subject title: Validate child of unsaved parent based on
grandparent attr?
I've got a create view with a form for both the parent object as well as
multiple child objects. Upon submit, can I validate the parent and child
objects before either are saved? There are a few caveats:
1.)
Hello everyone,
I'll like to hear your opinion on the following issue. I have a posts
and post_comments table. Posts belong to a group, so there is a
group_id column on it. I want to query for all the post_comments of a
user for a specific group, so what I am doing now is a INNER JOIN
between
i am using rexml and try to find id from Comment table i got the error
my code is like this
XPath.each(new_article, 'comments') do |comments|
XPath.each(comments, 'comment') do |new_comment|
c_oldid =
XmlMigratedData.find(:first,:conditions=[model_type=? and
Rich (and Fred)
On 26-Sep-08, at 12:19 PM, Frederick Cheung wrote:
On Sep 26, 5:13 pm, Rich Sturim [EMAIL PROTECTED]
wrote:
I need help understanding the pros and cons of these 2 facilities.
Am I correct in assuming that this daemon by definitive runs in the
rails environment, whereas
thanks craig,
I was able to generate the file w/the command and I added the add_column
code. When I do my migrate I can see rail iteratively compiling the files
and I see the
4 add_column(:reviews, :album_id, :integer)
-.2970s
4 AddAlbumIdToReviews: migrated (0.3120s)
which means that's it's
def inc_link_count
li = Link.find(params[:ID])
li.count++
li.save
end
To avoid multiple connections stepping on one another, you should
consider using update_counters (or a custom method that does the same
thing) instead of doing a find, modifying, and saving.
Peace.
--
how can we send message to twitter account from our application.I am
using twitter4r gem there is one message method in which we can post
but it's showing me following error
@twitter.message(:post, 'Are you coming over at 6pm for the BBQ
tonight?', '@christy24')
On Sep 26, 5:51 pm, Neetin Kumar [EMAIL PROTECTED]
wrote:
i am using rexml and try to find id from Comment table i got the error
Rexml's Comment class is shadowing your own. Either don't include
REXML in the model that is doing this processing (so you'll need to
prefix rexml classes with
On Sep 27, 12:47 am, elioncho [EMAIL PROTECTED] wrote:
Hello everyone,
I'll like to hear your opinion on the following issue. I have a posts
and post_comments table. Posts belong to a group, so there is a
group_id column on it. I want to query for all the post_comments of a
user for a
I'm just loading it like this:
Review
Review(id: integer, productReview:text, product: string, productCreator:
string, created_at: datetime, updated_at: datetime)
It's strange, I added an identical id to another structure called Album,
well I added review_id, and it worked out fine.
On Fri,
Hi all
Is there a method to iterate over an array with the index? Something
like
my_array.each_with_index do |obj, index|
...
end
Just couldn't find such a method... maybe I worked too much today... ;-)
Thanks
Josh
--
Posted via http://www.ruby-forum.com/.
On Sep 27, 1:33 am, Jon Liu [EMAIL PROTECTED] wrote:
I'm just loading it like this:
Review
Review(id: integer, productReview:text, product: string, productCreator:
string, created_at: datetime, updated_at: datetime)
It's strange, I added an identical id to another structure called
you know that might be a good idea...
On Fri, Sep 26, 2008 at 10:37 AM, Erol Fornoles [EMAIL PROTECTED]wrote:
On Sep 27, 1:33 am, Jon Liu [EMAIL PROTECTED] wrote:
I'm just loading it like this:
Review
Review(id: integer, productReview:text, product: string, productCreator:
Craig,
It worked. Thank youplease excuse me while I go shoot myself for not
trying that already. It's funny restarting the console has worked in some
instances like this before...but I was lazy and did reload! instead.
Rails is funny...
Thanks again
Jon
On Fri, Sep 26, 2008 at 10:38 AM,
So what do you suggest i should do create the join table with the model of
hand fill it.
On Fri, Sep 26, 2008 at 9:22 AM, Frederick Cheung
[EMAIL PROTECTED] wrote:
On Sep 26, 5:05 pm, rick_2047 [EMAIL PROTECTED] wrote:
I have two models Event and Category in my rails app.
I want a join
On Sep 27, 1:36 am, Joshua Muheim [EMAIL PROTECTED]
wrote:
Hi all
Is there a method to iterate over an array with the index? Something
like
my_array.each_with_index do |obj, index|
...
end
Just couldn't find such a method... maybe I worked too much today... ;-)
Thanks
Josh
--
i am installing rails on a new machine, and during each of my gem
installs, i am getting this:
1 gem installed
ERROR: While executing gem ... (Gem::DocumentError)
ERROR: RDoc documentation generator not installed!
anyone have any ideas?
--
Posted via http://www.ruby-forum.com/.
It also happens with rails-2.1.0 + soap4r-1.5.8 +
datanoise-actionwebservice-2.1.0
Fred Penz wrote:
I figured out this problem occures when loading soap4r after rubygems
in boot.rb:
require 'rubygems'
gem 'soap4r'
If you comment out the gem 'soap4r', you'll be able to get your wsdl
I didn't realize there was a deployment forum. I'll ask this there,
where it's more appropriate. Mods can delete this if they wish. Sorry
bout that.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
Hi Thank You a lot.
I took the first aproach and filled the div with a partial initially
with (remote_form_for)
in create I call a format.js with :
file : create.js.rjs
page.replace_html :constraintCont,
page.insert_html :bottom, :constraintCont,:partial = list, :object =
@constraint
Now
I am having trouble getting form_for to use method :put for my edit
view which has been driving me crazy. in the controller i have
User.find, not User.new so i can't figure out why this always
generates a method post.
i have tried the following and they all generate method = post, even
when i
On Sep 26, 9:27 am, Ar Chron [EMAIL PROTECTED] wrote:
If you want only @directories, then you should create an rxml template
to be used under software, where you marshall the xml data is any old
format you want.
for directory in @directories
xml.directory do
Ar Chron is right, I should just put some sort of voting system in
place, guess I was trying to take the easy way out. Back to the
drawing board, thanks everyone for your help
On Sep 26, 9:08 am, Ar Chron [EMAIL PROTECTED] wrote:
Dan Paul wrote:
Hello,
So I am trying to simply track the
Looking through the rails core code, I see method_missing performed like
this a lot:
def method_missing(method, *args)
if block_given?
current_status.send(method, *args) { |*block_args|
yield(*block_args) }
else
current_status.send(method, *args)
end
end
Why not
First off - rememebr We are ALL not rocket scientists.
The concept is great but the docs fall short for us rookies . . .
You would have a HUGE user base if you could get back to SIMPLIFYING
the installs.
BIG Question :
I have Apache, PHP, and mySQL running fine.
How do I get Ruby on Rails up
Hello,
I am working on the API of our webservice. API users need to
authenticate some of their calls...
When I am performig the call through Firefox, everything is fine as
shown in the log :
Processing OwnershipsController#new (for 67.207.118.174 at 2008-09-26
16:20:03) [GET]
Session ID:
Firefox
Session ID:
BAh7BiIKKmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
SGFzaHsABjoKQHVzZWR7AA==--5a5630c016ccd9482ce679e272d3d53adea86595
Perl
Session ID: 6ef6e5b8289004d925517d48294f1cc1
Give the vast difference between these two Session IDs it makes me
wonder if that is
So I have this in my environment.rb file:
Mime::Type.register_alias text/html, :help
Then in one of my views I have this:
%= render :partial = formatted_summary_account_path(help) %
In my view folder I have _summary.help.erb
When pulling up summary.erb I get this error:
did you try relaying on the request type per se,
without the .js on the url?
Taking the .js off the url just triggers the html response. I can append
the url with the query string /?format=js (as if i had written link_to
resource_path(@resource), :format = js) but I run into the same
69 matches
Mail list logo