similar to: GET/POST/PUT/DELETE

Displaying 20 results from an estimated 40000 matches similar to: "GET/POST/PUT/DELETE"

2014 Mar 05
0
Post requests exercised as a Get
Hello, I've been stuck on an issue for a few days now and I haven't been able to find any help online (asked multiple questions on stackoverflow). I'm not sure what to do anymore. Basically, I have a model 'competition' that allows users to attend it. The user can click 'attend' or 'withdraw' and change their status. it used to work, but my javascript was
2013 Sep 06
1
How to get local variable name from object id or memory reference in ruby?
Follow the code :- class Sample def bar p method(__method__).receiver # only `self` would do the trick. end end n1=Sample.new # => #<Sample:0x13bc648> n2=Sample.new # => #<Sample:0x13bc630> n1.bar # => #<Sample:0x13bc648> n2.bar # => #<Sample:0x13bc630> But this is my try. I am looking for any method is available in Ruby,into which say if I pas
2013 Jul 25
3
User Role authorisation
Hello, Currently I am working on a app, so far I have User (with devise) which are able to create projects. So, if user1 creates project A and project B I want him, to be able to assign user2 with role admin on project A, and user2 with moderator role on project B. I was thinking in creating a UserRoleProject link table, is it a good idea? Or if not please help me with some pointers. The action
2013 Jun 21
1
How to create Migration from Mysql DB with bigint type of Mysql
I have to create Migration file form Mysql DB But I want type of Migration equivalent with Mysql DB (example : in Mysql with type Bigint and in Migration will have type Int(20) or Bigint) Could You help me solve this Problem? 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
2013 Jul 08
4
Devise routes
hi... i am using two devises in rails 4 application,i need the routes for those devises. rails 4 is new feature for routes -- 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 unsubscribe from this group and stop receiving emails from it, send an email to
2013 Jul 09
2
can i use single devise for multiple models.
Hi, i need to use authentication for the 4 models,is it possible to use single devise for all models,if yes plz let me know them clearly. if not what is the solution. Thankyou -- 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 unsubscribe from this group and stop receiving emails
2013 Oct 18
1
Rails 4 + AngularJs (unembedded client) integration sample
Hi everybody, I''m experimenting with Rails and AngularJs (as unembedded client) and decided to upload to a public github repository my efforts. Of course, everything is just a toy application I use to experiment and test on various stuff (there''s absolutely no production ready nor TDD/BDD backed code). As of now a very basic login/signup feature is implemented and
2013 Jul 07
3
Convert Hex Color Value To HTML Color
Hey everyone. I''m new to ROR, and I followed and implemented the beginner Ruby On Rails Tutorial (2nd Edition) code, and its working great. For those who are unfamiliar, this creates a site that acts much like Twitter. If someone enter the hex value for a color (say #ff0000 for red), I would like for ROR to convert that to an HTML color box representation in the post that is created. Any
2013 Aug 27
2
trying to create asset management app having trouble with edit page
i trying to create an asset management app. i am working through the ruby on rails 4.0 guide by Michael Hartl but in his guide it shows edit page for authenticated users i do not needthis function as the app will be deployed to an intranet. i have tried to adapt the edit portion in the above mentioned guide but it is not working. i am a newbie to this so any help with websites to look at or other
2013 Sep 02
2
Why the string interpolation is not working inside the Nokogiri method `#search` ?
Why the string interpolation is not working inside the Nokogiri method `#search` ? require ''nokogiri'' doc = Nokogiri::HTML::Document.parse <<-eotl <div> <p>foo</p> <p>foo</p> <p>bar</p> </div> eotl doc.class # => Nokogiri::HTML::Document class Person attr_accessor :name end ram = Person.new
2013 Jun 04
3
Nokogiri::XML methods example
Hi, I am not able to find out a simple example to find out the how the method works: > Nokogiri::XML::EntityReference::new (http://nokogiri.org/Nokogiri/XML/EntityReference.html#method-c-new) > Nokogiri::XML::Document#canonicalize (http://nokogiri.org/Nokogiri/XML/Document.html#method-i-canonicalize) Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message
2013 Aug 29
4
Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)
Hi guys when I execute the piece of code bellow on RoR console it works fine: url = URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping") request = Net::HTTP::Post.new(url.path) http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request.body = "{\"apikey\": \"myapikey\"}" response = http.start
2013 Jul 09
3
routes for devise in rails4
hi all, i am using 3 devises for 3 models in rails4. i need routes to my devise models.the devises are client,admin,employee. when i login into client then it will go to clients dashboard, when i login into admin then it will go to admins dashboard, the employee also has the employee dashboard. if i do not enter any login then the common dashboard body message is please signin. please let me
2013 Sep 20
3
having problem to install the gem `mysql`
I am having problem to install the gem `mysql`. kirti@kirti-Aspire-5733Z:~$ gem install mysql Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /home/kirti/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb checking for mysql_query()... -lmysqlclient checking for main() in -lm... yes checking for mysql_query()...
2013 Jun 28
2
Hash_Tag Client side Validation
Hi anybody help me to find suitable validation way for Hash_Tag, My need is user should only type hash_tag like below format. a) #sports b) #sports,#news Please Help Me, Regards, Manoj. -- 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 unsubscribe from this group and stop receiving
2013 Aug 29
2
Need a bit help on "module_function" method
The documentation is very straight forward and the mentioned example also cleared all the lines except the one mentioned inside **. http://ruby-doc.org/core-2.0.0/Module.html#method-i-module_function Creates module functions for the named methods. These functions may be called with the module as a receiver, and also become available as instance methods to classes that mix in the module. Module
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56. It is said that the Cucumber skeleton generator > rails generate cucumber:install has to also generate the definition for the first step of the Scenario "Given I am on the homepage" in the file "features/step_definitions/web_steps.rb" # file: features/step_definitions/web_steps.rb Given /^(?:|I )am on
2013 Nov 28
1
Create email and grep the recieved emails.
I want to implememt auto mated email generation for every transaction. And then we will sent any uplods through our own emails. i wnat grep those email with attachments. This is very urgent for me. if any one know this please let me know. Thankyou for advance. Actually in paperlesspipeline they are did same functionslity. if you want check this url http://paperlesspipeline.com/ I
2013 Jul 04
1
simple-navigation items from database
Hello, i would like to ask how can i generate menu items from database using simple-navigation ? i was looking in documentation https://github.com/andi/simple-navigation/wiki/Dynamic-Navigation-Items but i dont get it. i have default config/navigation.rb SimpleNavigation::Configuration.run do |navigation| ... end and i have database categories id category_id name how can i generate a
2013 Nov 30
1
Need good tutorial on ActiveRecord associations
Hi, I am very new to rails.. I am having hard times to understand the ActiveRecord associations.. I tried http://guides.rubyonrails.org/association_basics.html .. But it is not for beginners. :) Is there any good tutorials, to understand the concept? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on