Anubhaw Prakash wrote:
> Anubhaw Prakash wrote:
>> Saurabh Peshkar wrote:
>>> Hi All,
>>>
>>> I am having an ROR application deployed on server, it is throwing the
>>> following error on server when user uploads an image:
>>>
>>> ActionController::RoutingError (No route matches
>>> "/images/.png"
I am using a YAML file for my app config, loading it :
raw_config = File.read(RAILS_ROOT + "/config/app_config.yml")
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
---
It's running well as long as I use alpha keys
development:
seve:
api_token: e09cba8653489749388797926
Anubhaw Prakash wrote:
> Saurabh Peshkar wrote:
>> Hi All,
>>
>> I am having an ROR application deployed on server, it is throwing the
>> following error on server when user uploads an image:
>>
>> ActionController::RoutingError (No route matches
>> "/images/.png" with {:method=>:get})
>>
>> Tha
On Sep 6, 12:58 pm, rodrigo3n wrote:
> Hello everyone, my app is Twitter based, and all I have to do is get
> the tweets of a given user and retweet it in other twitter profile..
> so when user1 tweets, user2 must automatically retweet. I think I must
> write some background job to make this work
Quoting Erwin :
>
>
> I have a string coming from an email body :
> (rdb:1) body
> "\r\nLe 3 sept. 2010 \340 19:06, Event Seve Test a \351crit :\r\n\r\n>
> Please answer the question by writing an X at the chosen places :\r\n>
> \r\n> are you coming : \r\n> \r\n> YES: X\r\n> \r\n> NO:_\r\n>
Quoting Charlie B99 :
> Veera Sundaravel wrote:
> > May be this link will help you.
> > http://veerasundaravel.wordpress.com/2010/02/15/rails3-beta-installation/
> >
>
>
> Still receive error installing rails: active model requires i18n
> When I try to sudo gem install i18n, it errors out becaus
Is log4r a good option for proper logging in rails app (date time,
severity, notification etc?) or is there something else out there?
--
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...@go
On Tue, Sep 7, 2010 at 6:54 AM, Peter De Berdt
wrote:
> I'd like to know if anyone here is using a UI plugin/gem ( not unlike
> django-rosetta on django ) to deal with multiple translators, some of
> them unwilling or unable to mess with 100+ files in a repository,
> working on language data.
>
>
I am trying the following in the irb console
begin
a = 4
a.dfsdfadsf
rescue => exp
puts exp.backtrace.join("\n")
else
puts "in else"
ensure
puts "ensure"
end
I am hoping to see a stacktrace of exception complaining about
method_missing for Fixnum but inste
On Tue, Sep 7, 2010 at 3:59 AM, z wrote:
> http://github.com/codez/render_inheritable.
cool, Pascal.
will try this some time..
thanks and best regards -botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send ema
Frederick Cheung wrote:
> On 4 Sep, 20:23, Zack Nathan wrote:
>> Hello all,
>>
>> for some reason nothing is being inserted into the database. I have no
>> idea why not! Here is my action:
>>
> Did you check for any validations failing
>
> Fred
Yep sorry, Iv been busy and hadnt checked my email
Hi;
Now I have tried the following, installed
ruby 1.8.7 (2010-08-16) [i386-mingw32]
rails 2.3.8
when I start the server --> ruby script/server, I get the following
eeror:
C:\Rails\demo>ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d
My team is looking for an experienced VP of Engineering
https://docs.google.com/document/edit?id=1waqnjDdxxJW0bZgDsJyphgQePjTpdsly6eI15gvR5fw&hl=en&authkey=COiRwI4B
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, se
Felix Schäfer wrote:
> Am 03.09.2010 um 18:28 schrieb Carl Jenkins:
>
>> Sorry, but what is rvm?
>
> http://lmgtfy.com/?q=rvm
>
> (it was the 3rd hit here, though I'd wager it might be the first in your
> locale)
>
> Felix
Clever.
--
Posted via http://www.ruby-forum.com/.
--
You received
Any help on this ?
Dani
--
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
ruby
Hi , all there.
My project now is under the deployment phase , and as the title
mentioned
i have decided to use the nginx + mod_rails for my deployment.
I set up the environment in CentOS 5 and using the Ruby Enterprise
Edtion (REE)
, rails new myApp , and see the Rails welcome page , i check the
render_inheritable is a Rails 3 plugin that allows one to inherit or
override single templates for controller hierarchies. Finally, also
views and partials remain DRY!
http://github.com/codez/render_inheritable
In the default case, a template is searched in the current
controller’s view folder. I
dry_crud generates simple and extendable controller, views and helpers
that support you to DRY up the CRUD code in your Rails project. Start
with these elements and build a clean base to efficiently develop your
application upon. Version 1.0.0 is built for Rails 3.
http://github.com/codez/dry_crud
Hello everyone, my app is Twitter based, and all I have to do is get
the tweets of a given user and retweet it in other twitter profile..
so when user1 tweets, user2 must automatically retweet. I think I must
write some background job to make this work but I don't know how? Any
ideas? Any gem inten
Thanks all, this ended up working which I believe scopes correctly...
Thoughts?
@note = current_user.notes.find(params[:id])
On Sep 6, 3:04 am, Frederick Cheung
wrote:
> On Sep 6, 4:38 am, nobosh wrote:
>
> > def correct_user
> > #...@note = Note.find(par
On 06 Sep 2010, at 14:09, andras wrote:
i'm building a multi-lingual webapp with i18n from the ground up, and
while i myself can deal with an army of yml files, the languages i
speak are ( very ) limited, and would eventually like to ask for
outside help.
I'd like to know if anyone here is usi
inside Rails source, at
http://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/query_methods.rb
I found a lot of calls to:
relation = clone
I can understand where id the "relation" call, but... how about "clone"
?
Perhaps "clone" comes from Ruby1.9-Kernel, but I
I notice that even though my app logs fine to the dev and prod logs, I
am having issue logging from other places like rake and console.
I have a rake task process_post that calls
#Post model
def self.process_post
logger.info "test"
end
I verified that the log level is set to "debug", but I never
I notice that even though my app logs fine to the dev and prod logs, I
am having issue logging from other places like rake and console.
I have a rake task process_post that calls
#Post model
def self.process_post
logger.info "test"
end
I verified that the log level is set to "debug", but I never
hi
I wanna call rails method from the javascript method.
It should be ajax call for rails method.
please help me.
--
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 e
The ideal Consultant will join a quickly growing agile team in the
development of a new web product that is targeted for Beta launch
within an aggressive time-frame. My client is looking for an
experienced hands-on Ruby on Rails developer who has experience with
leveraging Rails best practices and
Awesome!
Thanks Fred and Xuan. I was able to really clean up my code once I
understood this.
One side question based on this. Is there some normal ruby coding
guidelines? I was thinking I would want to make class level functions
capital, and instance level functions lowercase.
User.Authenticat
Hello everyone,
i'm building a multi-lingual webapp with i18n from the ground up, and
while i myself can deal with an army of yml files, the languages i
speak are ( very ) limited, and would eventually like to ask for
outside help.
I'd like to know if anyone here is using a UI plugin/gem ( not u
The project is on heroku and PostgreSQL is used there. I also use
PostgreSQL on my local. I thing creating/editing/deleting files on
heroku is forbidden
On 6 Wrz, 12:36, Colin Law wrote:
> On 6 September 2010 10:25, Daniel Morigan wrote:
>
> > Hi, I want to create an administration panel in the
ruby 1.8.7
gem 1.3.7
rails 3.0.0, 3.0.0.rc
when i write rails -v
error message come
Could not find gem 'mysql2 <>=0, runtime>' in any of the gem sources.
Try running 'bundle install'.
when I run bundle install then also it cann't install mysql2
please help me.
--
Posted via http://www.ruby-fo
PsiPro wrote:
> It would help to know the URL your being redirected to... but I see
> one potential issue:
>
> if @comment.save
> flash[:success] = "Comment saved."
> redirect_to articles_path(@article)
> else
> render 'show'
> end
>
> Lets pretened your comment fail
2010/9/6 Pål Bergström :
> Colin Law wrote:
>
>> @my_key = cookies[:my_key]
>> then access @my_key in the view. If the key is logically an attribute
>> of Test then use your method, if you are just putting it there in
>> order to pass it to the view then it may be more logical to use a
>> separate
hi, i using rails 2.3.8, i have setting this on my view:
<%=h l(@banner.expire, :format => :long) %>
(when "@banner.expire" is a Date )
and this on the my localized yml locale:
date:
formats:
long: "%d %B %Y"
but wheel i load the page, i have this error:
I18n::Mi
bump ... no answers?
On Sep 5, 9:35 pm, Ed wrote:
> So what is the best way to structure scores/index to deliver the
> appropriate list?
>
--
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
Hi,
Estoy pasando una aplicación que trabaja con Google maps y Rails 2. Con
Google maps recojo las coordenadas X y Y en dos campos de texto y los
paso
mediante el método :with al controlador para hacer algunas operaciones.
El código es:
I have an application with RoR and Google maps and i catch
pepe wrote:
> I think one of the things you might need is a 'timer', which will let
> your code 'sleep' before calling again your 'how_finished' function. I
> have never done this but remember reading about it, I googled for
> 'javascript sleep timer' and one of the links I found was this:
> http:/
We do live cricket and football scores with team statistics for a
large client. We use RoR and update the page by using js on a timer to
pull the json data and update the page. You can see it here (
http://scorecard.cricket.betfair.com/ )
There is no magic to this, big box, fat pipe, thin code.
P
Colin Law wrote:
> @my_key = cookies[:my_key]
> then access @my_key in the view. If the key is logically an attribute
> of Test then use your method, if you are just putting it there in
> order to pass it to the view then it may be more logical to use a
> separate variable.
Thanks but I don't ne
Evaldo Kalbermatter wrote:
> Evaldo Kalbermatter wrote:
>> Hola a t...@s,
>>
>> Les cuento... Tengo lo siguiente en aplicación:
>>
>> Una página donde esta mi modelo docencia que a su vez le voy agregando
>> todos los dictados de carreras:
>>
>>
>><% f.fields_for :dictados do |dictado_for
Hi,
I am looking for the right technologies to create a live score system for a
cricket match. I like the look of RoR as I will be able to build up
team/player statistics, use TDD and MVC. I'm learning Ruby/RoR.
The system is mainly for use at cricket matches. The scorer enters the
score
Saurabh Peshkar wrote:
> Hi All,
>
> I am having an ROR application deployed on server, it is throwing the
> following error on server when user uploads an image:
>
> ActionController::RoutingError (No route matches
> "/images/.png" with {:method=>:get})
>
> Thanks
>
> Saurabh
Hi Saurabh,
This
Hi,
The Problem got solved... Thank you for valuable comments from each one in
this thread.
On 4 September 2010 00:52, Cuz Ican wrote:
> Haven't used them but I would check them out..
> http://magicmodels.rubyforge.org/magic_model_generator/
> http://github.com/ahe/reverse_scaffold
>
> Also, re
Hi,
Please help in this regard
I got the error when tried to apply the script for sql command "SELECT *
FROM clients WHERE (clients.id = 10)"
Taxa = Model Name
I used
"taxa = Taxa.find(40)" in ActiveRecord::Base... I got the trace as
undefined method `eq' for nil:NilClass
activesupport (3.0.0)
Answering my own question.
As security, in this case, involves the prevention of injected
javascript from executing, I wrote a method to scan for 'script' tags.
def strip_script_tags( post)
if Nokogiri::HTML( post).css('script').empty?
return post
else
return 'Contents removed
for secu
HI,
You may try "rails server" in Rails 3 to start server. "script/server" was
gone in last version itself...
On 6 September 2010 13:31, Daniel wrote:
> Chris, I am running Rails 3 and will give that a go. I must have been
> running 2.3.8 on the earlier install. I'll let you know how it goes.
Hi,
This was happened when i tried to give "Model.find " option in Query
interface.
On 6 September 2010 13:32, Kannan wrote:
> Hi,
>
> Me too got same error... I attached Full trace here... Kindly suggest
> on this issue...
>
> undefined method `eq' for nil:NilClass
>
> activesupport (3.0.0) lib
Hi,
Me too got same error... I attached Full trace here... Kindly suggest
on this issue...
undefined method `eq' for nil:NilClass
activesupport (3.0.0) lib/active_support/whiny_nil.rb:48:in
`method_missing'
activerecord (3.0.0) lib/active_record/relation/finder_methods.rb:
291:in `find_one'
acti
Chris, I am running Rails 3 and will give that a go. I must have been
running 2.3.8 on the earlier install. I'll let you know how it goes.
Thanks.
On Sep 6, 3:52 am, Chris Mear wrote:
> On 6 Sep 2010, at 04:02, Daniel wrote:
>
>
>
>
>
> > I am running into an odd problem and would love some as
Hi All,
I am having an ROR application deployed on server, it is throwing the
following error on server when user uploads an image:
ActionController::RoutingError (No route matches
"/images/.png" with {:method=>:get}):
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in
`proces
Blogpost.create(:title => "my title", :desc => "my desc") ... is this
what you're after for?
On Sep 6, 2:00 pm, Aruna Chinnamuthu wrote:
> Hi ,
>
> I am new to ROR..
>
> I am trying to write a ruby code for the already existing API for blogs
> .
>
> For the create action in my blogpost.rb model f
Hi ,
I am new to ROR..
I am trying to write a ruby code for the already existing API for blogs
.
For the create action in my blogpost.rb model file
validates_presence_of :title, :category_id, :user_id
validates_length_of :title, :in => 8..140, :too_short => "is too
short", :too_long => "is
On 6 September 2010 10:25, Daniel Morigan wrote:
> Hi, I want to create an administration panel in the application that
> would allow to backup the database and some other stuff. How can I
> create a backup and send it to some place (s3, ftp) or download it as
> a file to the local computer.
I gu
On 6 September 2010 05:30, rajeevsharma86 wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have two modelds
>1. loan model belongs_to :borrower
>
>2. borrower model has_many:loans
>
> In my borrower Show method i wrote
>
> <%= link_to 'Request New Loan', :c
On Sep 6, 4:38 am, nobosh wrote:
> def correct_user
> #...@note = Note.find(params[:id])
> #...@note_userid = @note.user_id
> @note = @user ? @user.notes.find(params[:id]) : nil
> @cur
Hi, I want to create an administration panel in the application that
would allow to backup the database and some other stuff. How can I
create a backup and send it to some place (s3, ftp) or download it as
a file to the local computer.
Daniel
--
You received this message because you are subscrib
On Sep 6, 10:26 am, Aruna Chinnamuthu wrote:
> hi , i am new to ROR
>
> i was acually trying to write Ruby code for the api blogs
>
> i have written the ruby code as
>
> Loading development environment (Rails 2.3.8)
> >> class Blogpost < ActiveRecord::Base
> >> has_many :taggin
hi , i am new to ROR
i was acually trying to write Ruby code for the api blogs
i have written the ruby code as
Loading development environment (Rails 2.3.8)
>> class Blogpost < ActiveRecord::Base
>> has_many :taggings
>> has_many :tags,:through => :taggings
>> end
What I would do is adding a condition so it would delete objects
marked before a given time, so it won't delete posts that were marked
after that time, giving the user time to change his mind in case he's
editing the post when the batch is running.
Ways to do it could be adding a timestamp "marked_
please check the post "Use scope access" on rails-bestpractices.com,
http://rails-bestpractices.com/posts/3-use-scope-access, it tells you
how to use the Ed's way to strict access and rescue the exceptions.
On 9月6日, 上午11时38分, nobosh wrote:
> Thanks for the reply, I do have the relationships decla
On 6 sep, 08:00, pipplo wrote:
> Hi Guys,
>
> I'm experimenting with my first rails app currently. One thing I'm
> trying to implement is a login system.
>
> I created a model for user.rb I've added a couple of functions to the
> class for example:
>
> def self.authenticate(user_info)
> fin
nope, only within the action.
On Sep 5, 11:31 pm, Christian Fazzini
wrote:
> Hi Paul. but wouldnt that redirect to users_path on any activerecord
> not found event?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group,
On 5 Σεπτ, 21:25, Manos wrote:
> I have installed jquery-ujs driver and include jquery script in my
> view.
>
> In my view I have the following function
>
> $(function () {
> $('#alert').click(function () {
> $.ajax({
> type: "POST",
> data: ({ lat: this.
On 6 Sep 2010, at 04:02, Daniel wrote:
> I am running into an odd problem and would love some assistance. I
> had Ruby/Rails up and running perfectly fine on a Win 7 machine but
> recently had to perform a fresh install of everything. The previous
> install as well as this one were completed wi
Jonathan Viney wrote:
> export RAILS_ENV=production
> rake migrate
>
> Are you sure you haven't manually set the value in environment.rb ...
>
> -Jonathan.
For the newbies out there like me:
In the environment.rb file the environment type has to be in quotes like
so:
RAILS_ENV="production"
--
I am running into an odd problem and would love some assistance. I
had Ruby/Rails up and running perfectly fine on a Win 7 machine but
recently had to perform a fresh install of everything. The previous
install as well as this one were completed with RubyInstaller 1.9.2.
In the old install I was
I have similar issues with some js.rjs files after upgrading an app to rails
3. Some respond_to blocks keep working fine as before and I get JS returned,
some keep trying to return HTML and thus spit out the 406 error. I haven't
found any good reason in my code to justify this kind of behavior, eve
Additionally, Mark, don't use ruby 1.9.1 with rails: it's buggy.and it's not
recommended, as mentioned on RoR home page. Consider compiling ruby from
source, either version 1.8.7 or 1.9.2. Follow the step by step instructions
from Ruby official site if in doubt. Install RubyGems manually afterwards
On Sep 6, 7:28 am, badnaam wrote:
> Nevermind turns out my model classname was same as the class name of a
> plugin. Wonder why reload! always returned true, never complained or
> gave a clue
>
At the point that the plugin was loaded, that class was probably
marked as non reloadable, as plugins
On Sep 6, 7:00 am, pipplo wrote:
> Hi Guys,
>
> I'm experimenting with my first rails app currently. One thing I'm
> trying to implement is a login system.
>
> I created a model for user.rb I've added a couple of functions to the
> class for example:
>
> def self.authenticate(user_info)
> f
On 3 September 2010 15:05, Tony Primerano wrote:
> try adding trace to your rake command to get more information
>
> rake rails:upgrade:check --trace
Here is with --trace option:
rake aborted!
no such file to load -- initializer
/home/user/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
Again answering to myself...
I solved the problem by:
1-Using *link_to_remote* using :with clause, and passing as serialize
the id of the div that I had to create sourranding the select
2-In the controller, once taked the parm and maked all the operations,
use *respond_to* js and reloading the
Many thanks for your help. Very appreciated.
Happy RoR3 developments!
--
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
72 matches
Mail list logo