I'm working with ruby on rails 2.3.4 and I yesterday I found out I cannot send emails any more.
The email-related credentials are ok because I could send emails until I upgraded my rails version about two weeks ago.
The error message I get is the following:
ArgumentError in UsersController#create
wrong # of arguments(3 for 2)
D:/Pro...
i am developing a ruby on rails (2.3.8) application with data storage amazon simpledb.
i am using the aws-sdb gem in the version aws-sdb (0.3.1)
there are a few bugs, but the problems are outlined in the comments of this tutorial from amazon: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1242
i am wondering if it ...
Hi Everyone,
I am trying to get some information posted using our accountancy package (FreeAgentCentral) using their API via a GEM.
http://github.com/aaronrussell/freeagent_api/
I have the following code to get it working (supposedly):
Kase Controller
def create
@kase = Kase.new(params[:kase])
@company = Company.find(para...
Hi there,
I spend a good deal of time building an email system for my Rails app that uses Gmail to send bulk mail to a list of opt-in users. I realize a shortcomming of using Google Apps for my mail, namely a rate limit on the number of emails it will send out (i believe 500). Anyway, I have reached out to my users to see how many hav...
Update: Turns out that this problem was because half my mongrel did not restart. Thanks all for help!
Hi folks, i have an urgent problem. Essentially, my routing works on my localhost. But when i deployed this to production, the routes does not seem to work correctly.
For example, given a new route "/invites" - sometimes i will get a 4...
How can I map both Users and Things to root - so '/myname' and '/friendly-url-slug-for-a-thing' finds their objectives and the url_for helpers work as expected?
...
Hi,
I am implementing a full text search API for my rails apps, and so far have been having great success with Thinking Sphinx.
I now want to implement a date range search, and keep getting the "bad value for range" error.
Here is a snippet of the controller code, and i'm a bit stuck on what to do next.
@search_options = { :page ...
Hi,
I have just started learning Ruby on Rails.
I happened to look for prevention of DNS attacks in Rails and ended up reading about DNS, Session fixation and Cross Site request forgery in Rails?
How do you prevent all the above three attacks??
Could you suggest me a good tutorial on how to deal with attack in RoR?
Looking forward f...
How to make form Google.com param (e.g. /some_action/Google.com) a single param, but not "id"=>"Google", "format"=>"com" ?
So i need "id"=>"Google.com"
...
I am having some trouble getting this running.
http://github.com/alexyoung/jschat
I ran:
jschat-server
jschat-web
and was able to access the page on localhost:4567
However after I entered a name and chatroom I got this error:
INFO -- : (): {"cookie":"pl5n6xsu"}
Data that raised exception: wrong number of arguments (2 for 0)
"{\"...
Hi
I want to expire a cached action and wondered how to generate the correct reference.
#controller
caches_action :index, :layout => false
#generates this fragment which works fine
views/0.0.0.0:3000/article/someid/posts
#sweeper
...
expire_action article_posts_path(:article_id => post.article)
# results in this
Expired fragment: view...
I was trying to fix this error and I ended up with a new one.
I have installed ruby 1.8.6, but using Built-in JRuby 1.4.0 for my app.
Everything was working fine until I updated every gem(as specified by the answer I got from that link) and everything crashed: ever since I tried to start the app I received the following error message:
...
I am try to find the top n number of categories as they relate to articles, there is a habtm relationship set up between the two. This is the SQL I want to execute, but am unsure of how to do this with ActiveRecord, aside from using the find_by_sql method. is there any way of doing this with ActiveRecord methods:
SELECT "categories".id,...
Hi Everyone,
I know this may seem trivial to some, other won't see the point, however - for me this would be great:
I am trying to work out how to quickly and efficiently commit updates to my Rails app, switch to an under construction style page while I restart the rails app and then test the changes, then when I am happy, switch back...
Hello,
I'm wondering if right-rails(rightjs) is ready for rails3?
I'didn't found any replacement for the default public/javascripts/rails.js
Thanks
...
I'm in a bit over my head with debugging ajax calls on this, wondering if anyone can help me out. I followed all the directions in the readme, the one tricky thing is my user model is both the rater and the one being rated, not sure if that makes a difference.
I'm rating across four dimensions, [:overall, :knowledgeable, :punctual, :fr...
We're setting up RoR with Development on Mac OS X Client (10.6.3) and then using a Mac OS X Server (10.5.8) for testing and eventually deployment.
I'd like to get as many systems in sync on these machines as possible. Wondering if there are any pitfalls. I mostly understand what's necessary under Client but Server has some hard-wired st...
Rails: i have a class method and i want to modify something of the instance
something like this:
class Test < Main
template :box
def test
# here I want to access the template name, that is box
end
end
class Main
def initialize
end
def self.template(name)
# here I have to save somehow the template name
...
I'm using this jquery autocomplete plug-in with rails: http://docs.jquery.com/Plugins/Autocomplete
I can't figure out how to format my results, both in my Rails controller and in my javascript file.
I have something like this in my controller...
@query = params[:q].downcase
@json = User.all(:login => /^#{@query}/)
respond_to do |forma...
I am interested in developing a workstation-based application that communicates with a proprietary data server and that presents information from that server to the user. I am not intending the user interface to be browser-based, and have been considering Qt as my framework. Should I consider RoR for this? Thanks.
...