similar to: Advanced routing question.

Displaying 20 results from an estimated 1400 matches similar to: "Advanced routing question."

2006 Jan 15
7
Dreaded Internal 500 Error on DreamHost.
Hey guys, I often get this problem the first time I try to deploy a rails app on dreamhost and I''m not sure what the cause is. Basically, I have an app that''s running fine on my local machine. I''ve uploaded the app, configured and migrated to the latest version of the db, and set all of the necessary directories to 755. But when I run dispatch.rb in ssh or
2008 Dec 13
2
Need Help in converting php encryption decryption code to ruby on rails
Hi guys i found this encryption decryption in php and try to convert it in rails but i am unable to successfully convert it. So plz help me. I you write the whole conversion code then it will be great. PHP code is like this ================ # #/********************************************** #** #** MD5 block cypher #** #** Author..: leapinglangoor [
2005 Dec 15
1
Rails Gem Not Installing Properly?
Hey guys, I get a very strange behavior when I attempt to install the Rails gem on my server: [root@hotaces local]# gem install rails --remote Attempting remote installation of ''rails'' Successfully installed rails-1.0.0 Normally it asks if I want to include dependencies etc. etc. This appears to be instant but then when I try to use the rails command it is not there. I
2006 Feb 10
4
Handling a relationship between users and newsletter subcriptions.
Hey Everyone! I have a newsletter system that contains a multitude of different newsletters. In this case three but the system allows the user to add more. Every user can be subscribed to any amount of given newsletters. So what I did was I created a user model, newsletter model, and subscription model. The subscription model belongs to one user and one newsletter. However,
2006 Jul 25
6
form and pagination question
Hello, How do I get params from a form to use with a paginator? debug(params) shows this city: !map:HashWithIndifferentAccess id: "1" but in my controller, when I try to use @hotel_pages = Paginator.new self, Hotel.count(:conditions => "hotels.city_id = params[:city][:id]"), 3, @params[''page''] it doesn''t work. I suppose it''s a simple
2006 Apr 19
2
how to pass a hash as a parameter in link_to_remote
When using link_to_remote, I''d like to pass along some auxiliary data in the request. It''s a hash of dynamic data that can change with each request. But I get an error when rails trying to "stringify" the hash. For the regular link_to, it works because it turns the hash into a regular GET-like query string. I''m expecting to be able to get my hash as
2006 Jun 07
2
Hash flattening on paginator link_to
Hey I need some help with pagination and the link_to in the view. I''m trying to include a hash in the pagination link_to params and it keeps flattening out my hash. Example: Here''s my hash called @answer: "answer"=>{"6"=>"9bf31c7ff062936a96d3c8bd1f8f2ff3", "7"=>"6f4922f45568161a8cdf4ad2299f6d23"}
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in Rails 2.0. If you know what that is, skip the next paragraph. A cookie session store stores the session data inside cookies, on the client, and signs them using a secret string, hashed together. The user can decode the cookie easily if they know much about computers and see what''s inside, but they
2006 May 18
3
Two-Dimensional Hashes through links?
I''m really hitting a wall here. My program has a search engine, returns a list of results. I am using a two-dimensional hash to pass the form data back to my controller. (i.e. params[:job] => {:description => "xxx", :location => "xxx", company => "xxx"}) I use that Job object to search my database, and then wait for user input. Now when the
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2007 Dec 23
1
Rails: possible routing discrepancy
Hey all, I''m seeing a strange behavior in my spec that I can''t account for. I''ve got a route that looks like this: map.writing \ ''/writing'', :controller => ''abstracts'', :action => ''index'', :index => { :select => ''all'' } and I have template code that looks like this: <br
2005 Dec 19
1
Is there a guide for using ERBSQL?
I''m not sure I completely understand the benefits of using ERBSQL or how to use it. Google searches have proved it to be rather undocumented. From what I understand the embedded ruby sql allows you to write sql that''s easier to deploy via the create_db script and also more portable to postgres, myslq, or whatever. But what I can''t find is a resource that
2005 Dec 25
5
understanding session fixation attacks
is there a way that, our application can understand wheteher the session id sent from the browser is forged or created by rails? I understand that if the attacker guesses session id, theres nothing we can do about it; but can we understand if he/she is trying to guess by creating random session ids. _______________________________________________ Rails mailing list
2006 Jun 30
6
RSS::Parser Documentation
Hi I am trying to use the RSS classes from "rss/2.0" and everything works but I want to know what attributes and properties I can get at from each of the classes I am getting back. For example, the class has a "channel" which I can tell has a "title" attribute (because it works when I query it :) but I would really like a list of every attribute that is
2003 Jun 11
3
more on PXELinux confiuration file woes
I performed an experiment in which I had dhcpd specify a named file ("foo") instead of one based on a client's MAC address. Lo and behold, the same problem occured. The PXE stack requested and was served the right file, the kernel loaded as did the initrd. But again, the boot sequence stopped at "Ready." Keep in mind that the contents of the file are the same as was in the
2005 Dec 15
3
save and save! fail but no errors are created
Hi I will provide code if needed but I am wondering if there might be a standard cause for this: a Model I am trying to save seems to fail miserably at either a #save or #save! call. In the latter case, a RecordInvalid is raised, but when I inspect it, the Errors object does not contain any error messages (full or otherwise). I have tried many a way but I can not seem to get any error info. Are
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that first sets up the depot application (page 68), there is this bit of code from a view: <% for product in @products %> <tr> <% for column in Product.content_columns %> <td><%=h product.send(column.name) %></td> <% end %> etc... I am trying to absorb both Ruby and
2006 Jan 30
4
How to encode URLs?
How does one encode URLs in ROR? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/60280869/attachment.html
2005 Oct 03
3
WriteBoard for Programmers? (code support)
Anyone think it''d be useful to make a WriteBoard type application that supported ruby, html, etc. and allowed programmers to collaborate on writing scripts or just code in general and track each others changes? Just a thought. - Jim
2008 Nov 03
3
MS-SQL deliveres binary image as array
Hello! I need to display images stored in a MS-SQL database but I get the following error: NoMethodError (undefined method `unpack'' for #<Array:0x48cbff0>): c:/ruby/lib/ruby/1.8/base64.rb:59:in `decode64'' I guess its because MS-SQL delivers an arry... Is there a solution to this problem?? Please help me! lacky -- Posted via http://www.ruby-forum.com/.