[Rails] Pagination for static pages

2012-06-14 Thread mohitnegi
Does rails provide a way to achieve pagination, while reading data from yaml document or from an excel sheet. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyo

[Rails] Rails 3 | Ruby 193 | taking 10-15 mins

2012-06-14 Thread Piyush Gupta
Hi All, I am not sure but somehow something feels wrong . When I try to do "rails s" "rake migrate" "rake db:migrate" "rake spec" or anything else it takes around 10-15 mins . Is the same happening with someone else ? Configuration ruby - 1.9.3 windows rails - 3.2.3 bundler - 1.1.3 OS -window

Re: [Rails] newbie question: where to find documentation?

2012-06-14 Thread Victor Goff
http://bfts.rubyforge.org/minitest/ You are right to look in http://ruby-doc.org but minitest is actually a Standard Library rather than Core. http://ruby-doc.org/stdlib-1.9.3/ and then minitest... should get you the information you are looking for. On Wed, Jun 13, 2012 at 4:56 PM, m wrote: >

[Rails] how to setup nulldb

2012-06-14 Thread Sam Serpoosh
Hello everyone, can you tell me how can I setup nulldb in a rails app so I'll be able to have fast sepcs. I read through the nulldb github page and went through the installation and setup steps but I'm getting some errors. I searched a lot but I didn't find any useful thing for solving the proble

[Rails] return JSON in AJAX

2012-06-14 Thread Felipe Pieretti Umpierre
hello guys, I'm trying to make a ajax request and return some data from my controller, but how I do it to call the JSON in my JS after the request ? controller task def create @task = Task.create( :project_id => params[ :project_id ], :name => params[ :task ] ) if @task.valid? @re

[Rails] Re: I can't install ruby on rails on my mac - Sorry I know it's been posted 1 million times before

2012-06-14 Thread 1334
i didn't try that, but http://railsinstaller.org/ has a one click installer. hope it helps On Wednesday, June 13, 2012 12:33:10 PM UTC+2, blakeh92 wrote: > > > Hi guys > > I have a macbook pro version 10.7.4. > I'm so keen to start using the ruby programming language and the ruby on > rails fra

[Rails] Re: I can't install ruby on rails on my mac - Sorry I know it's been posted 1 million times before

2012-06-14 Thread Tan Le
Download and install this goodie https://github.com/kennethreitz/osx-gcc-installer Cheers, Tan On Wednesday, June 13, 2012 8:33:10 PM UTC+10, blakeh92 wrote: > > > Hi guys > > I have a macbook pro version 10.7.4. > I'm so keen to start using the ruby programming language and the ruby on > rails

[Rails] newbie question: where to find documentation?

2012-06-14 Thread m
Hello, I am very new to Ruby on Rails and am currently working my way through the Depot tutorial in the *Agile Web Development with Rails* book. I like to have as much info available as possible when I am learning something new and had a question about where to find documentation. In my speci

[Rails] Re: How to log session variables in Rails 3.2?

2012-06-14 Thread Bo Jeanes
Hey, I know this is a few months old, but I ran into the same issue and have a (pretty hacky) solution. I put this into my `config/application.rb` in order to have access to the session in my log_tags: config.middleware.delete(ActionDispatch::Cookies) config.middleware.delete(ActionDisp

Re: [Rails] rake about > Environment staging

2012-06-14 Thread tom
good points rick, it lead me to the issue: my system-user groupmembership was wrong. i added for some other reasons my system user to the root and some other groups...that messed everythign up. using a new user, same rvmrc & Gemfile works again as expected. thx On Mon, Jun 11, 2012 at 3:30 PM, Ri

[Rails] Weird (?) ActiveSupport::TimeZone parse behaviour

2012-06-14 Thread lomback
Hi I must be slipping, but say I have a string that looks like: 3/11/2012 2:50:00 AM If I use the UTC timezone and ask it to parse this time, what would you expect the result to be? Personally, I'd say 3/11/2012 2:50:00 AM UTC Given this is the DST switchover date (for some places) this is

[Rails] Re: Reading a file using File.read

2012-06-14 Thread cyber c.
I think i understood the problem -- 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 unsubscribe from this group, send emai

Re: [Rails] Re: Can't find my join table

2012-06-14 Thread Colin Law
On 14 June 2012 13:23, Timen E. wrote: > Thanks alot, > in that case i'd like to ask the following question (since after some > tutorials it's still unclear to me) > > I've got card_id = 1 and user_id = 1 in my DB now. In my user.rb i've > got the has_and_belongs_to_many:cards and in cards i've go

[Rails] Re: Reading a file using File.read

2012-06-14 Thread cyber c.
Im using absolute path. Actually i mounted a directory from remote server anddo a "find" for a specific file and then try reading it. The cmd find passes and returns a valid path to the file. But only the read cmd fails. -- Posted via http://www.ruby-forum.com/. -- You received this mess

[Rails] Re: Reading a file using File.read

2012-06-14 Thread Andreas S.
Are you using a relative path? You might just be in a different working directory in your Rails app. -- 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 rubyonr

[Rails] Reading a file using File.read

2012-06-14 Thread cyber c.
Hi, File.read(VALID_PATH_TO_FILE) works on ruby console but not as a rails application. I dont understand why it fails saying "No such file or directory". Even File.exist? returns false from rails application output but returns true from rails console. It has readable permissions for the current u

[Rails] need a file upload plugin and a way to authenticate from another app

2012-06-14 Thread skrite
Hey all, i need to be able to create a mobile application that will upload a file to my rails site. i need the application to authenticate and then upload. I am using the basic roll-your-own authenticate system with a sessions and users controllers. Any ideas where best to find a tutorial o

[Rails] Great Ruby on Rails project; looking for resources

2012-06-14 Thread Aurelio Sisto
Our client - a rapidly growing, well-funded financial services company based in Manhattan that facilitates the creation and servicing of loans between students and credit unions nationwide - is looking for 2 experienced Ruby on Rails developers, for a consulting project. Only candidates that can wo

[Rails] How to use a text_field for dates?

2012-06-14 Thread Marc C.
Hello, I need to accept dates in a form using a text_field and not a date_select. Why? Well, because for users it's faster to type a date. But if I enter a simple date like "13/05/2012" (dd/mm/ format), when I want to edit this register, in the text_field appears "2012-05-13". How can I chan

Re: [Rails] Re: user registration form example?

2012-06-14 Thread Colin Law
On 14 June 2012 13:20, RR TT wrote: > is there a way to encrypt the password value being stored in > development.sqlite3? so far when I open it I can see the values as plain > text I think the tutorial at railstutorial.org will show you how to do that. Colin -- You received this message becaus

[Rails] Strange regression in 3.0.14

2012-06-14 Thread Walter Lee Davis
I updated an application from 3.0.10 to 3.0.14, and now I'm getting an error of NoMethodError (undefined method `collect' for #): app/models/attachment.rb:20:in `set_uid' app/controllers/attachments_controller.rb:24:in `create' It's being triggered by the call to Attachment.find_by_uid in thi

[Rails] Re: RoR 2.3.5

2012-06-14 Thread pepe
If you can, upgrade, especially if your app is developed for Windows. I have developed several apps in 2.x and they are increasingly becoming a nightmare to maintain. Most of the better gems I've wanted to use work only under Rails 3 and the alternatives are usually not good. I am currently upg

[Rails] Re: Can't find my join table

2012-06-14 Thread Timen E.
Thanks alot, in that case i'd like to ask the following question (since after some tutorials it's still unclear to me) I've got card_id = 1 and user_id = 1 in my DB now. In my user.rb i've got the has_and_belongs_to_many:cards and in cards i've got has_and_belongs_to_many:users. However, if i g

[Rails] Re: user registration form example?

2012-06-14 Thread RR TT
is there a way to encrypt the password value being stored in development.sqlite3? so far when I open it I can see the values as plain text -- 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 po

[Rails] Can't find my join table

2012-06-14 Thread CavalryJim
Close. Try @a = CardUser.new Then @a.card_id = value & @a.user_id = value -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/t6Dns-JQr9oJ. To pos

[Rails] Can't find my join table

2012-06-14 Thread Timen E.
Hey there, I was following up on some tutorials about has_many(_and_belongs_to). There it was explain that i should make a join table as such: create_table 'cards_users', :id => false do |t| t.column 'card_id', :integer t.column 'user_id', :integer end So i did, but now i wanna add a record

Re: [Rails] What is the difference between Soap API and REST API?

2012-06-14 Thread Rafi A
Thanks Peter. I have already tried & got the same response what you said. Just curious to know if any!. Perhaps Ruby geeks know something that is hidden under the cave :). Regards, Seeni Rafiyullah Khan A, On Thu, Jun 14, 2012 at 4:05 PM, Peter Hickman < peterhickman...@googlemail.com> wrote:

Re: [Rails] What is the difference between Soap API and REST API?

2012-06-14 Thread Loganathan Sellapa
@Peter Hickman +1 :D regards, Loganathan ViewMe On Thu, Jun 14, 2012 at 4:05 PM, Peter Hickman < peterhickman...@googlemail.com> wrote: > Given that this is a generic question and has nothing to do with Ruby > or Rails perhaps you should > > TRY GOOGLING FOR

Re: [Rails] What is the difference between Soap API and REST API?

2012-06-14 Thread Peter Hickman
Given that this is a generic question and has nothing to do with Ruby or Rails perhaps you should TRY GOOGLING FOR IT! Guess what the first result is :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send ema

[Rails] What is the difference between Soap API and REST API?

2012-06-14 Thread Rafi A
Regards, Seeni Rafiyullah Khan A, * * -- 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 unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@goog

[Rails] Re: Re: Ror code please just help me in findng solution

2012-06-14 Thread Prajwal B.
Muruga wrote in post #1061096: > Hi Prajwal > Dont behave silly .You are not really professional > guy.You > behave like illiterate.Even they also behave decently than you.. > >Do you know who am i .I am the person conducting > interview > for you. > >

[Rails] Re: Ror code please just help me in findng solution

2012-06-14 Thread Prajwal B.
Hey muruga i am rejected from fameexpress man see i really had respect for your organisation being a fresher i thought this is the organisation i tried everything possible with at the certain point i took help of few people i except man but what you do donkey's do there same neenu ade madod bev

Re: [Rails] Re: Opening a file having white spaces on is name with the default program

2012-06-14 Thread Colin Law
On 13 June 2012 09:05, Paulo Carvalho wrote: > Hello, Please don't top post, it makes it difficult to follow the thread. Insert your reply inline in previous post. Thanks > > Thanks for your answer. > > I have made a put of the command > > f1 = "d:/sat - Copy.png" > f1 = f1.gsub(" ", "\ ") > cm

[Rails] Re: Open Source Project Suggestion

2012-06-14 Thread Nicolas Sebrecht
The 13/06/12, Mohit Sindhwani wrote: > On 13/6/2012 8:01 PM, Sam Serpoosh wrote: > >Hello everyone, > > > >I'm looking for a rails open source project which is using newer > >versions of rails and is a good place for reading other people's > >code for learning > >more and more ways and techniques o

[Rails] Cucumber/RSpec ::: Capybara? Webrat What am I using??

2012-06-14 Thread Joshua Muheim
Hey everybody I'm currently reading through the Pragmatic Programmers RSpec book, and I really enjoy it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to